TonyGen / mongoDB-haskell

MongoDB driver for Haskell
http://hackage.haskell.org/package/mongoDB
Apache License 2.0
57 stars 14 forks source link

Couldn't match type `[Char]' with `Data.Text.Internal.Text' #27

Closed roseperrone closed 10 years ago

roseperrone commented 10 years ago

I'm running on mac os. I installed gcc 4.7 and ran cabal install mongoDB.

I can run the Example.hs just fine, but when I try to walk through the tutorial in GHCI, and I tried to import Data.CompactString (), I got the following error:

: Could not find module `Data.CompactString' It is not a module in the current program, or in any known package. and when I tried to run > access pipe master "test" allCollections > I got the following error: :7:20: Couldn't match type `[Char]' with`Data.Text.Internal.Text' Expected type: Database Actual type: [Char] In the third argument of `access', namely`"test"' In the expression: access pipe master "test" allCollections In an equation for `it': it = access pipe master "test" allCollections