Update tutorial.md

Data.CompactString is no longer needed in ghci.

`runIOE` has been deprecated. Everything now works without runIOE.
This commit is contained in:
Ron 2015-01-10 18:33:00 +08:00
parent 4696355085
commit 2186eeeafe

View file

@ -16,13 +16,12 @@ Import the MongoDB driver library, and set OverloadedStrings so literal strings
> :set -XOverloadedStrings
> import Database.MongoDB
> import Data.CompactString () -- only needed when using ghci
### Connecting
Establish a connection to your local Mongo server on the standard port (27017):
> pipe <- runIOE $ connect $ host "127.0.0.1"
> pipe <- connect $ host "127.0.0.1"
A host with non-standard port would look like `Host "127.0.0.1" (PortNumber 27001)`.