map -package:ghc is:exact -package:base -package:containers -package:imports package:foldl

Fold pairs into a map.