Add simple set for BSON to work on ghci but also from scripts
PR#122
This commit is contained in:
commit
10d877cfcd
1 changed files with 2 additions and 1 deletions
|
@ -12,9 +12,10 @@ Start a haskell session:
|
||||||
$ ghci
|
$ ghci
|
||||||
> :set prompt "> "
|
> :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 -XOverloadedStrings
|
||||||
|
> :set -XExtendedDefaultRules
|
||||||
> import Database.MongoDB
|
> import Database.MongoDB
|
||||||
|
|
||||||
### Connecting
|
### Connecting
|
||||||
|
|
Loading…
Reference in a new issue