map -package:Cabal -package:base -package:text -package:dlist -package:blaze-html -package:conduit -package:vector is:exact -package:regex-tdfa -package:rio package:dhall

Decode a Map from a toMap expression or generally a Prelude.Map.Type.
>>> input (Dhall.map strictText bool) "toMap { a = True, b = False }"
fromList [("a",True),("b",False)]

>>> input (Dhall.map strictText bool) "[ { mapKey = \"foo\", mapValue = True } ]"
fromList [("foo",True)]
If there are duplicate mapKeys, later mapValues take precedence:
>>> let expr = "[ { mapKey = 1, mapValue = True }, { mapKey = 1, mapValue = False } ]"

>>> input (Dhall.map natural bool) expr
fromList [(1,False)]