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

Fold pairs into a map.