[nhc-bugs] importing only a part of the Prelude

Christian Maeder maeder@tzi.de
Fri, 28 Mar 2003 17:15:34 +0100


module TestOnlyImport where

import Prelude(String)

f::String
f = ""


yields:

nhc98    -c  -o TestOnlyImport.o TestOnlyImport.hs
======  Errors when renaming:
Constructor () used at  is not defined.
Constructor Prelude.2 used at  is not defined.
Type constructor Prelude.2 used at  is not defined.
Constructor Prelude.: used at  is not defined.
Constructor Prelude.[] used at  is not defined.
Identifier Prelude.undefined used at  is not defined.
Identifier Prelude.id used at  is not defined.
Constructor Prelude.False used at  is not defined.
Constructor Prelude.True used at  is not defined.
Identifier Prelude.flip used at  is not defined.
Identifier Prelude.error used at  is not defined.
Type constructor Prelude.Int used at  is not defined.