The HEAD version of Cabal contains a rather large patch called "Refactorings only", which inadvertantly fixed a bug: the 6.6 version rejects a Cabal file that contains unknown fields but no library. It would be handy if that bug could be fixed in the 6.6 version too. Would it be best to make a subset of the patch?