map -package:containers -package:base-compat-batteries -package:Cabal-syntax is:exact package:foldl

Fold pairs into a map.