fix for old cabal versions