Parsing JSON string into record in Haskell

前端 未结 5 2199
爱一瞬间的悲伤
爱一瞬间的悲伤 2021-01-31 10:42

I\'m struggling to understand this (I\'m still a bit new to Haskell) but I\'m finding the documentation for the Text.JSON package to be a little confusing. Basicall

5条回答
  •  我在风中等你
    2021-01-31 11:27

    Import Data.JSon.Generic and Data.Data, then add deriving (Data) to your record type, and then try using decodeJSON on the tweet.

提交回复
热议问题