Permalink
Browse files

Fix missing data constructor in doc comments

  • Loading branch information...
1 parent 3ea60c1 commit 08a365e51922ce2006bfcba0266d8e2dd6230a6d @puffnfresh puffnfresh committed Feb 6, 2014
Showing with 4 additions and 4 deletions.
  1. +4 −4 Data/Aeson/Types/Class.hs
View
8 Data/Aeson/Types/Class.hs
@@ -66,7 +66,7 @@ genericParseJSON opts = fmap to . gParseJSON opts
--
-- @{-\# LANGUAGE OverloadedStrings #-}
--
--- data Coord { x :: Double, y :: Double }
+-- data Coord = Coord { x :: Double, y :: Double }
--
-- instance ToJSON Coord where
-- toJSON (Coord x y) = 'object' [\"x\" '.=' x, \"y\" '.=' y]
@@ -99,7 +99,7 @@ genericParseJSON opts = fmap to . gParseJSON opts
--
-- import GHC.Generics
--
--- data Coord { x :: Double, y :: Double } deriving Generic
+-- data Coord = Coord { x :: Double, y :: Double } deriving Generic
--
-- instance ToJSON Coord
-- @
@@ -131,7 +131,7 @@ class ToJSON a where
--
-- @{-\# LANGUAGE OverloadedStrings #-}
--
--- data Coord { x :: Double, y :: Double }
+-- data Coord = Coord { x :: Double, y :: Double }
--
-- instance FromJSON Coord where
-- parseJSON ('Object' v) = Coord '<$>'
@@ -169,7 +169,7 @@ class ToJSON a where
--
-- import GHC.Generics
--
--- data Coord { x :: Double, y :: Double } deriving Generic
+-- data Coord = Coord { x :: Double, y :: Double } deriving Generic
--
-- instance FromJSON Coord
-- @

0 comments on commit 08a365e

Please sign in to comment.