Early trial builds of 2012.2.0.0

Andres Löh andres.loeh at googlemail.com
Wed May 16 13:53:25 BST 2012


<george.colpitts at gmail.com> wrote:
> Changing my import to
>
>        import System.Environment (getArgs)
>
> solves the problem although on the previous version of the Haskell platform
>
>        import System (getArgs)
>
> worked.

This is current GHC behaviour, and does (IMHO) not classify as a
Platform problem. The packages base, haskell98 and haskell2010 now
have overlapping modules, which results in GHC hiding the packages
haskell98 and haskell2010 at startup time. The "System" module is only
provided by haskell98. If you still want to use the haskell98 package,
you have to say something like

   ghc -hide-all-packages -package haskell98 Main

in order to compile your program.

Cheers,
  Andres



More information about the Haskell-platform mailing list