on master help sign in
Correct haddock for examples
a606347Markus Hauck
Data/Aeson/Types/Class.hs+4−2
@@ -129,7 +129,8 @@ class ToJSON a where
129--
129--
130-- An example type and instance:
130-- An example type and instance:
131--
131--
132+-- @
132−-- @{-\# LANGUAGE OverloadedStrings #-}
133+-- {-\# LANGUAGE OverloadedStrings #-}
133--
134--
134-- data Coord = Coord { x :: Double, y :: Double }
135-- data Coord = Coord { x :: Double, y :: Double }
135--
136--
@@ -165,7 +166,8 @@ class ToJSON a where
165--
166--
166-- For example the previous example can be simplified to just:
167-- For example the previous example can be simplified to just:
167--
168--
169+-- @
168−-- @{-\# LANGUAGE DeriveGeneric \#-}
170+-- {-\# LANGUAGE DeriveGeneric \#-}
169--
171--
170-- import GHC.Generics
172-- import GHC.Generics
171--
173--