
This is probably bad configuration on my part, but I can't seem to build the one example program (in docs/examples/ZooQuiz.hs). For example, if I try something like: $ hmake ZooQuiz nhc98 -c -o ZooQuiz.o ZooQuiz.hs ==================================== Error when renaming:: Identifier Binary.<< used at 9:25 is not defined. (in overlap resolution) Identifier Binary.getBitsF used at 9:25 is not defined. (in overlap resolution) Identifier Binary.getF used at 9:25 is not defined. (in overlap resolution) Identifier Binary.sizeOf used at 9:25 is not defined. (in overlap resolution) Identifier Binary.getBits used at 9:25 is not defined. (in overlap resolution) Identifier Binary.putBits used at 9:25 is not defined. (in overlap resolution) Identifier Binary.get used at 9:25 is not defined. (in overlap resolution) Identifier Binary.put used at 9:25 is not defined. (in overlap resolution) Type class Binary.Binary used at 9:25 is not defined. (in overlap resolution) Which doesn't work. I believe Binary to be a non-standard module, so maybe some flag has to be activated to inform hmake where to find it. But I thought hmake was supposed to take some of the guesswork out! :-) Any clues? Thanks, -Brent

This is probably bad configuration on my part, but I can't seem to build the one example program (in docs/examples/ZooQuiz.hs).
Actually, *cough*, that is my fault. At some point in our transition of nhc between Haskell 1.3 and Haskell 98, the automatic internal qualified import of the Binary library (required for 'deriving Binary') got removed from the compiler. To work around this, you need to have *both* of the following imports: import Binary import qualified Binary at the top of the ZooQuiz program. Sorry about that. Regards, Malcolm
participants (2)
-
Brent Fulgham
-
Malcolm Wallace