No import of Prelude
From HaskellWiki
1 Question
Is it possible not to load Prelude module when compiling a Haskell module?
2 Answer
You can either do
import Prelude()
or add
{-# LANGUAGE NoImplicitPrelude #-}to the top of the module, or equivalently compile with -fno-implicit-prelude option.
import Prelude()<hask> is less aggressive than <code>NoImplicitPrelude</code>.
E.g. with the first method <hask>fromInteger
E.g. with the first method <hask>fromInteger
3 See also
- Haskell-Cafe: Not to load Prelude
