on master help sign in
Completely remove the MINIMAL prama because it's unnecessary

From the GHC user guide: If no MINIMAL pragma is given in the class declaration, it is just as if a pragma {-# MINIMAL op1, op2, ..., opn #-} was given, where the opi are the methods that lack a default method in the class declaration...

commit4667ef1029a373cf4510f7deca147c357c6d8947 authorBas van Dijk <v.dijk.bas@gmail.com> dateMon 12 Oct 2015, 09:46 (11 years ago) parente2b038d
1 file changed−6
Data/Aeson/Types/Class.hs−6
Data/Aeson/Types/Class.hs−6
@@ -136,12 +136,6 @@ class ToJSON a where
136136 -- | Convert a Haskell value to a JSON-friendly intermediate type.
137137 toJSON :: a -> Value
138138
139− -- TODO: We would like to set the MINIMAL pragma for toJSON but then
140− -- instances which are using the default Generic implementation will
141− -- complain that toJSON is not defined.
142− -- See GHC bug: https://ghc.haskell.org/trac/ghc/ticket/10959
143− -- {-# MINIMAL toJSON -- #-}
144−
145139 default toJSON :: (Generic a, GToJSON (Rep a)) => a -> Value
146140 toJSON = genericToJSON defaultOptions
147141