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:
parent
4696355085
commit
2186eeeafe
1 changed files with 1 additions and 2 deletions
|
@ -16,13 +16,12 @@ Import the MongoDB driver library, and set OverloadedStrings so literal strings
|
||||||
|
|
||||||
> :set -XOverloadedStrings
|
> :set -XOverloadedStrings
|
||||||
> import Database.MongoDB
|
> import Database.MongoDB
|
||||||
> import Data.CompactString () -- only needed when using ghci
|
|
||||||
|
|
||||||
### Connecting
|
### Connecting
|
||||||
|
|
||||||
Establish a connection to your local Mongo server on the standard port (27017):
|
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)`.
|
A host with non-standard port would look like `Host "127.0.0.1" (PortNumber 27001)`.
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue