Commits

Neill Bogie  committed a75f807

Mention where doc examples assume OverloadedStrings is enabled.

Hopefully, this will save haskell newcomers some confusion.

  • Participants
  • Parent commits 6618125

Comments (0)

Files changed (1)

File Data/Aeson/Types.hs

 -- instance ToJSON Coord where
 --   toJSON (Coord x y) = 'object' [\"x\" '.=' x, \"y\" '.=' y]
 -- @
+--
+-- This example assumes the OverloadedStrings language option is enabled.
 class ToJSON a where
     toJSON   :: a -> Value
 
 --   \-- A non-'Object' value is of the wrong type, so use 'mzero' to fail.
 --   parseJSON _          = 'mzero'
 -- @
+--
+-- This example assumes the OverloadedStrings language option is enabled.
 class FromJSON a where
     parseJSON :: Value -> Parser a