[Haskell-cafe] Aeson + MongoDB, how to effortlessly store and retrieve json?

Alfredo Di Napoli alfredo.dinapoli at gmail.com
Mon Feb 18 22:37:24 CET 2013


Good evening guys,

suppose I write a very simple parser using Aeson with these types and
ToJSON / FromJSON instances:

https://github.com/cakesolutions/the-pragmatic-haskeller/blob/master/01-json/Pragmatic/Types.hs
https://github.com/cakesolutions/the-pragmatic-haskeller/blob/master/01-json/Pragmatic/JSON/Parser.hs

My question is simple: is it possible to "automagically" store the haskell
data structure produced from the aeson encoding using

http://hackage.haskell.org/packages/archive/mongoDB/1.3.2/doc/html/Database-MongoDB-Query.html#g:7

Any tip/suggestion is welcome,

Thanks,
Alfredo
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/haskell-cafe/attachments/20130218/1c908139/attachment.htm>


More information about the Haskell-Cafe mailing list