Adding simple set for BSON to work on ghci but also from scripts
This commit is contained in:
parent
952aed5a1f
commit
1afc7bfab5
1 changed files with 2 additions and 1 deletions
|
@ -12,9 +12,10 @@ Start a haskell session:
|
|||
$ ghci
|
||||
> :set prompt "> "
|
||||
|
||||
Import the MongoDB driver library, and set OverloadedStrings so literal strings are converted to UTF-8 automatically.
|
||||
Import the MongoDB driver library, and set OverloadedStrings so literal strings are converted to UTF-8 automatically and ExtendedDefaultRules for using BSON fields with basic types.
|
||||
|
||||
> :set -XOverloadedStrings
|
||||
> :set -XExtendedDefaultRules
|
||||
> import Database.MongoDB
|
||||
|
||||
### Connecting
|
||||
|
|
Loading…
Reference in a new issue