Skip to content

Commit ae15eba

Browse files
committed
Merge branch 'fix-warnings' of https://github.com/23Skidoo/cassava
2 parents 8f89e31 + ab9deee commit ae15eba

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

Data/Csv/Conversion.hs

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,16 @@
66
FlexibleInstances,
77
KindSignatures,
88
MultiParamTypeClasses,
9-
OverlappingInstances,
109
OverloadedStrings,
1110
Rank2Types,
1211
ScopedTypeVariables,
1312
TypeOperators,
1413
UndecidableInstances
1514
#-}
15+
#if __GLASGOW_HASKELL__ < 710
16+
{-# LANGUAGE OverlappingInstances #-}
17+
#endif
18+
1619
module Data.Csv.Conversion
1720
(
1821
-- * Type conversion
@@ -665,7 +668,11 @@ class ToField a where
665668
toField :: a -> Field
666669

667670
-- | 'Nothing' if the 'Field' is 'B.empty', 'Just' otherwise.
668-
instance FromField a => FromField (Maybe a) where
671+
instance
672+
#if __GLASGOW_HASKELL__ >= 710
673+
{-# OVERLAPPABLE #-}
674+
#endif
675+
FromField a => FromField (Maybe a) where
669676
parseField s
670677
| B.null s = pure Nothing
671678
| otherwise = Just <$> parseField s

0 commit comments

Comments
 (0)