{- Create a JSON bool from a Dhall `Bool`

```
let JSON = ./package.dhall
in  JSON.render (JSON.bool True)
= "true"

let JSON = ./package.dhall
in  JSON.render (JSON.bool False)
= "false"
```
-}
let JSON =
        ./Type sha256:5adb234f5868a5b0eddeb034d690aaba8cb94ea20d0d557003e90334fff6be3e
      ? ./Type

let bool
    : Bool → JSON
    =   λ(x : Bool)
      → λ(JSON : Type)
      → λ ( json
          : { string :
                Text → JSON
            , number :
                Double → JSON
            , object :
                List { mapKey : Text, mapValue : JSON } → JSON
            , array :
                List JSON → JSON
            , bool :
                Bool → JSON
            , null :
                JSON
            }
          )
      → json.bool x

in  bool
