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

This commit is contained in:
Carlos Saltos 2021-05-02 01:51:39 +03:00
parent 952aed5a1f
commit 1afc7bfab5

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