[Haskell-beginners] Help with Data.Aeson json data parsing

Brandon Allbery allbery.b at gmail.com
Fri Jan 3 23:48:49 UTC 2014


On Fri, Jan 3, 2014 at 6:42 PM, Miro Karpis <miroslav.karpis at gmail.com>wrote:

> data SomeDataPack = SomeDataPack{
>     pack :: [SomeData]
> } deriving (Show, Generic)
>

Isn't this going to be a record? {"pack": [an array goes here]} just as
with the preceding definition, but with only a single field.

-- 
brandon s allbery kf8nh                               sine nomine associates
allbery.b at gmail.com                                  ballbery at sinenomine.net
unix, openafs, kerberos, infrastructure, xmonad        http://sinenomine.net
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/beginners/attachments/20140103/79dfa8be/attachment-0001.html>


More information about the Beginners mailing list