Add a Haskell script to aggregate Cabal flags for linking packages