Re:Haskell: http-streams and Aeson
by enigmo on Saturday June 01, 2013 @10:33AM
(#5804084)
It's not all that difficult, since io-streams has attoparsec support and aeson is an attoparsec parser... coded directly in the input box, I don't have io-streams installed so I can't see if this typechecks:
[ Parent
| on HN ]
Re:Haskell: http-streams and Aeson
by joshrotenberg on Saturday June 01, 2013 @11:46AM
(#5804429)
I started looking at attoparsec after the post. Thanks, I'll look closer and see if I can figure it out.
Re:Haskell: http-streams and Aeson
by joshrotenberg on Saturday June 01, 2013 @12:35PM
(#5804657)
Found this: https://github.com/RobinKrom/Mtgox/blob/master/src/Mtgox/Htt...
receiveResponse con (\_ i -> parseFromStream json i))
This seems to work but without the benefit of being marshalled into my type.