Add simple set for BSON to work on ghci but also from scripts

PR#122
This commit is contained in:
Victor Denisov 2021-05-27 22:05:26 -07:00
commit 10d877cfcd

View file

@ -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