I’m trying to compile hackport ( here is sources: https://github.com/Nensha/hackport ) with newer cabal but always getting the same Error:
[61 of 91] Compiling Distribution.Client.Types ( cabal/cabal-install/Distribution/Client/Types.hs, dist/build/hackport/hackport-tmp/Distribution/Client/Types.o )
cabal/cabal-install/Distribution/Client/Types.hs:33:12:
Module
`Distribution.Compat.Exception'
does not export
`SomeException'
according Distribution.Compat.Exception there must not be any problems and in must come from base but fails. So the question is why?
Your problem is that
there are two modules
Distribution.Compat.Exception. One undercabal/cabaland one undercabal/cabal-install. The latter exportsSomeException, the former doesn’t. But the compiler picked up the one from theCaballibrary, which doesn’t. Maybe reordering the directories in theHs-Source-Dirsfield would be a workaround.Normally, when compiling
cabal-install, the source directories of theCaballibrary are not available, so theDistribution.Compat.Exceptionthat gets picked up is the one fromcabal-install.