GHC and Haskell 98
igloo at earth.li
Mon Jun 20 16:57:44 CEST 2011
On Mon, Jun 20, 2011 at 12:43:37PM +0100, Paterson, Ross wrote:
> Simon Peyton-Jones writes:
> > (Plan A) Add a module 'Prelude' to package 'haskell98'.
> > Now you can compile a pure H98 program thus:
> > ghc -c Main.hs -hide-all-packages -package haskell98
> > (Cabal puts the -hide-all-packages in for you.) And this will
> > continue to work even if later iterations of Haskell change the Prelude.
> So Plan A also involves hiding the haskell98 package by default?
Yes. This puts it in the same category as haskell2010, which is already
hidden by default in GHC 7.0. Also, note that hiding makes no difference
when using Cabal.
More information about the Libraries