on master help sign in
Fixed typos. ('-' and 'Coord')

* Is there supposed to be a "-" after Show? I had to remove it in order to compile my example. * Clearly "Coord" is from one of the example applications and got missed in a copy-paste. It should be an instance for Person.

commitb2b5d4d4dfcc748c72e6650e9959b4fd84811aea authorrietmann <max.rietmann@gmail.com> dateWed 24 Jul 2013, 22:49 (13 years ago) parent363c250
1 file changed+2−2
Data/Aeson.hs+2−2
Data/Aeson.hs+2−2
@@ -128,13 +128,13 @@ eitherDecode' = eitherDecodeWith json' fromJSON
128128-- > data Person = Person
129129-- > { name :: Text
130130-- > , age :: Int
131−-- > } deriving Show-
131+-- > } deriving Show
132132--
133133-- To decode data, we need to define a 'FromJSON' instance:
134134--
135135-- > {-# LANGUAGE OverloadedStrings #-}
136136-- >
137−-- > instance FromJSON Coord where
137+-- > instance FromJSON Person where
138138-- > parseJSON (Object v) = Person <$>
139139-- > v .: "name" <*>
140140-- > v .: "age"