[Haskell-cafe] Not to load Prelude

Henning Thielemann lemming at henning-thielemann.de
Thu Jan 10 15:40:03 EST 2008


On Thu, 10 Jan 2008, [windows-1252] 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
  import Prelude ()

but some things like 'fromInteger' as used for number literals are still
present. You can write the pragma
  {-# OPTIONS -fno-implicit-prelude #-}
 at the top of your module to get completely rid of the Prelude.


More information about the Haskell-Cafe mailing list