Scott R. Parish
949bece818
class for toBson/fromBson, instances for Maybe
...
For example, you can now use fromBson of Maybe BsonValue (eg the result of
a lookup) to convert to Maybe a.
You can also give a Maybe a to toBson and for Nothing it will produce
BsonNull and for Just a it will create the appropriate BsonValue for a.
2010-01-18 10:26:13 -06:00
Scott R. Parish
f60d984677
some initial Convertibles for converting from Bson
2010-01-18 09:57:25 -06:00
Scott R. Parish
67bf1245bb
some initial (to BsonValue) Convertible instances and toBson
2010-01-17 23:08:14 -06:00
Scott R. Parish
4cfd4e7fa3
use what appears to be more standard naming, eg BsonValue instead of BSValue
2010-01-17 11:41:24 -06:00
Scott R. Parish
7f777c8fb4
compile with -Wall and -Werror, fix all ensuing breaks
2010-01-16 21:40:22 -06:00
Scott R. Parish
4c17f8e646
licenses (MIT)
2010-01-16 19:22:46 -06:00
Scott R. Parish
d1cccd075d
create and use putNothing instead of using flush as a no-op
2010-01-12 19:59:52 -06:00
Scott R. Parish
b18d3d54b0
BSON: fix unexported data constructor
2010-01-10 21:23:54 -06:00
Scott R. Parish
2cea5777fb
BSON: use Data.Map for BSONObjects
2010-01-10 21:23:54 -06:00
Scott R. Parish
61051bfc46
move the get/put* helpers to Util.hs so other modules can use them
2010-01-10 21:23:50 -06:00
Scott R. Parish
06391f5992
stuff to make into a package
2010-01-09 16:49:06 -06:00
Scott R. Parish
5c5ec38413
move BSON.hs to Database/MongoDB/BSON.hs
2010-01-09 16:36:59 -06:00