map -package:base-compat-batteries is:exact -package:ghc -package:base -package:dlist package:foldl

Fold pairs into a map.