Compiling cabal with GHC HEAD

Oleg Grenrus oleg.grenrus at
Wed Aug 19 14:46:56 UTC 2015

I tried to fix compilation of Cabal using Cabal HEAD. It’s trivial patch:

but it breaks build on every other released GHC:


The original issue GHC-7.11 complained was:

Distribution/Client/Types.hs:71:10: error:
    Illegal instance declaration for
      ‘PackageFixedDeps InstalledPackageInfo’
      (All instance types must be of the form (T t1 ... tn)
       where T is not a synonym.
       Use TypeSynonymInstances if you want to disable this.)
    In the instance declaration for
      ‘PackageFixedDeps InstalledPackageInfo’

So I had to add TypeSynonymInstances and FlexibleInstances

And also had to change import of InstalledPackageInfo(exposed) in Haddock module.


At this point I’m really confused. I cannot find ‘InstalledPackageInfo_’ symbol anywhere. Can someone explain what happens?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 842 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <>

More information about the ghc-devs mailing list