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

Fold pairs into a map.