@@ -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