Use --reorder-goals to fix cabal installation of dependencies.