Open ghost opened 11 years ago
It's probably to do with base now being Haskell 2010, and thus not having Haskell 98's library set visible. There's a way to get GHC to use the Haskell 98 set, which is more of a stopgap but might help get things up and running for a while (i.e. until they stop shipping Haskell 98's core libraries). As http://stackoverflow.com/questions/9555671/ghc-7-4-update-breaks-haskell98 answers explain:
ghc -package haskell98 -hide-package base
Because base is now Haskell 2012, you have to hide it and bring Haskell 98 in instead.
Right, since we mostly rely on haskell98 for base packages, is it time to switch to ghc's base?
Feel free to contact me over email and I'm willing to help out. On Oct 1, 2012 7:14 PM, "Matthew Walton" notifications@github.com wrote:
It's probably to do with base now being Haskell 2010, and thus not having Haskell 98's library set visible. There's a way to get GHC to use the Haskell 98 set, which is more of a stopgap but might help get things up and running for a while (i.e. until they stop shipping Haskell 98's core libraries). As http://stackoverflow.com/questions/9555671/ghc-7-4-update-breaks-haskell98answers explain:
ghc -package haskell98 -hide-package base
Because base is now Haskell 2012, you have to hide it and bring Haskell 98 in instead.
— Reply to this email directly or view it on GitHubhttps://github.com/perl6/Pugs.hs/issues/25#issuecomment-9032316.
Hiding base package doesn't quite seem to be the right solution, since Compat.hs in pugs-compat uses System.Mem.Weak
which is part of base. Using both haskell98
and base
doesn't cut it either, since it leads to ambiguous Prelude
errors.
Is there a better way of specifiying exact modules on a per-file basis?
Pugs.hs build fails on latest haskell platform (2012.2.0.0 with GHC 7.4.1). The OS is windows 7 64 bit.
A more verbose output can be found here: https://gist.github.com/3810975#file_cabal.issue_verbose.txt
I tried to fix that with moving
IO
toSystem.IO
- admittedly, it seems to be more involved than that. Unless I'm very much mistaken, this would involve moving any dependencies from haskell98 to base (that's bundled along with GHC, as is the case since GHC 7.0.1)