map -package:dlist -is:exact -package:containers is:exact -package:ghc package:foldl

Fold pairs into a map.