File tree Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change 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+
1619module 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
You can’t perform that action at this time.
0 commit comments