[Haskell-cafe] Not to load Prelude
Jeremy Shaw
jeremy.shaw at linspireinc.com
Thu Jan 10 14:33:08 EST 2008
At Thu, 10 Jan 2008 17:22:02 -0200,
Maurício wrote:
>
> Hi,
>
> Is it possible not to load Prelude module
> when compiling a Haskell module? Or instruct
> ghc to “unload” it?
You can either do:
import Prelude()
or compile with the -fno-implicit-prelude flag, or add
{-# LANGUAGE NoImplicitPrelude #-}
to the top of the module.
NoImplicitPrelude is more aggressive than 'import Prelude()'. You will
have to look elsewhere for a better explanation of the difference.
j.
More information about the Haskell-Cafe
mailing list