TonyGen/mongoDB-haskell — Issue #8: Convert BSON to JSON
Author: seanhess
Created: 2011-11-03 05:46:36+00:00
State: open

Hi, I'm new to haskell, so I have no idea whether this kind of code belongs in the BSON repo, the JSON repo, or something else, but I needed a way to serialize BSON to JSON.

https://gist.github.com/1335856

Can you use this? (Note that it's not quite done). If not, where does this kind of mapping between two separate libraries live in haskell-land? BSON and JSON are such close cousins that it seems like it should be easier.

Is there a better way to do this?

Also note that it seems that most of the libraries use Text.Text now instead of CompactString, which made it annoying to convert between the two.

Thanks!