From 06391f59928ee9f68d7dbd0c5566baa38b5892ba Mon Sep 17 00:00:00 2001 From: "Scott R. Parish" Date: Sat, 9 Jan 2010 16:49:06 -0600 Subject: [PATCH] stuff to make into a package --- Database/MongoDB/BSON.hs | 10 +++++++++- Setup.lhs | 3 +++ mongoDB.cabal | 11 +++++++++++ 3 files changed, 23 insertions(+), 1 deletion(-) create mode 100755 Setup.lhs create mode 100644 mongoDB.cabal diff --git a/Database/MongoDB/BSON.hs b/Database/MongoDB/BSON.hs index 5be9df7..8fbc1b4 100644 --- a/Database/MongoDB/BSON.hs +++ b/Database/MongoDB/BSON.hs @@ -1,4 +1,12 @@ - +module Database.MongoDB.BSON + ( + BSValue(..), + BSONObject, + toBSONObject, + fromBSONObject, + BinarySubType(..) + ) +where import Control.Monad import Data.Binary import Data.Binary.Get diff --git a/Setup.lhs b/Setup.lhs new file mode 100755 index 0000000..5bde0de --- /dev/null +++ b/Setup.lhs @@ -0,0 +1,3 @@ +#!/usr/bin/env runhaskell +> import Distribution.Simple +> main = defaultMain diff --git a/mongoDB.cabal b/mongoDB.cabal new file mode 100644 index 0000000..0c087f2 --- /dev/null +++ b/mongoDB.cabal @@ -0,0 +1,11 @@ +Name: mongoDB +Version: 0.1 +License: MIT +Build-Depends: base, + binary, + bytestring, + data-binary-ieee754, + time, + utf8-string +Build-Type: Simple +Exposed-modules: Database.MongoDB.BSON