
3 May
2006
3 May
'06
7:51 p.m.
ekarttun:
Hello
How is one supposed to handle fps being merged to the base package in a Cabal file? Clearly GHC 6.4 will need to depend on the fps package while with GHC 6.5 such a dependency is superfluous, and actually having fps installed will cause conflicts.
What is the right solution?
One solution is to provide 2 .cabal files. One default one, using whatever the default compiler needs (i.e. -package fps). And for those on the bleeding edge, a foo.cabal.6.5 perhaps, without the fps package dep. These users would then have to perform one extra step to build the package. I can't think of a native Cabal way to solve this though. We don't allow __GLASGOW_HASKELL__ or such numbers inside .cabal files, or conditionals. -- Don