map -package:Stream -package:basement -package:containers -package:byteslice package:dhall is:exact

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)]