[nhc-bugs] Binary

Amanda Clare ajc99@aber.ac.uk
Fri, 04 Jan 2002 14:19:06 +0000


When compiling the following program I get the following error messages.
I can compile programs that just import and use Binary, but nothing that
derives Binary. This is on nhc98 v1.08 (2001-09-25) [ config:
ix86-Linux/ghc by malcolm@pc173.cs.york.ac.uk on 25 Sep 2001 ]  using a
binary tar file to install nhc. Am I using it correctly?

Amanda


[ajc99@pcburum hier]$ hmake TestBin
nhc98    -c -o TestBin.o TestBin.hs
 
====================================
        Error when renaming::
Identifier Binary.<< used at 5:58 is not defined.
Identifier Binary.getBitsF used at 5:58 is not defined.
Identifier Binary.getF used at 5:58 is not defined.
Identifier Binary.sizeOf used at 5:58 is not defined.
Identifier Binary.getBits used at 5:58 is not defined.
Identifier Binary.putBits used at 5:58 is not defined.
Identifier Binary.get used at 5:58 is not defined.
Identifier Binary.put used at 5:58 is not defined.
Type class Binary.Binary used at 5:58 is not defined. 



module Main where

import Binary

data MyTree = Node String MyTree MyTree | Empty deriving Binary

main = do bh <- openBin (File "binfile" WO) 
	  put bh (Node "hello" Empty Empty)
	  closeBin bh