Commits

rietmann committed c86d579

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.

  • Participants
  • Parent commits 61f9909

Comments (0)

Files changed (1)

File Data/Aeson.hs

 -- > data Person = Person
 -- >     { name :: Text
 -- >     , age  :: Int
--- >     } deriving Show-
+-- >     } deriving Show
 --
 -- To decode data, we need to define a 'FromJSON' instance:
 --
 -- > {-# LANGUAGE OverloadedStrings #-}
 -- >
--- > instance FromJSON Coord where
+-- > instance FromJSON Person where
 -- >     parseJSON (Object v) = Person <$>
 -- >                            v .: "name" <*>
 -- >                            v .: "age"