We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4ccd6b0 commit 85734cfCopy full SHA for 85734cf
src/Constrained/Core.hs
@@ -1,3 +1,4 @@
1
+{-# LANGUAGE CPP #-}
2
{-# LANGUAGE FlexibleInstances #-}
3
{-# LANGUAGE GADTs #-}
4
{-# LANGUAGE ImportQualifiedPost #-}
@@ -135,7 +136,9 @@ instance Typeable c => Show (Evidence c) where
135
136
unionWithMaybe :: (a -> a -> a) -> Maybe a -> Maybe a -> Maybe a
137
unionWithMaybe f ma ma' = (f <$> ma <*> ma') <|> ma <|> ma'
138
139
+#if !MIN_VERSION_QuickCheck(2, 17, 0)
140
instance Arbitrary a => Arbitrary (NonEmpty a) where
141
arbitrary = do
142
NonEmpty xs <- arbitrary
143
pure (NE.fromList xs)
144
+#endif
0 commit comments