[nhc-bugs] problems compiling

Mark Tullsen tullsen@acm.org
Sat, 01 Dec 2001 17:30:19 -0800


After a long hiatus (having switched over hugs/ghc due to the *need*
for rank2 polymorphic types -- hint, hint).  I'm now trying to use 
nhc98 to compile a program that could make use of some of the Hat 
tracing tools.  However, I'm not getting very far:

Problem 1:

  When compiling Func.hs:
    module Func where
    import Prelude hiding ((&&),(||),not)
    ...

  I get this:

    nhc98    -c -o Func.o Func.hs
    
    ====================================
            Error when renaming::
    Identifier Prelude.&& used at 14:24 is not defined.


Problem 2, when trying to compile for tracing:

  nhc98  -T   -c -o LocalLib.T.o LocalLib.hs
  
  Fail: The class Prelude.Enum has no instance for the type Prelude.R.
  Possible sources for the problem are: 9:6

BTW, Are the "14:24" and "9:6" messages attempting to refer to line and columns
or something totally different?

I'm using the rpm for RH Linux of version 1.10.
I can certainly provide more information if that's needed.  Thanks.

- Mark