Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fix missing data constructor in doc comments

  • Loading branch information...
commit 08a365e51922ce2006bfcba0266d8e2dd6230a6d 1 parent 3ea60c1
@puffnfresh puffnfresh authored
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
-- @
Please sign in to comment.
Something went wrong with that request. Please try again.