There seems to be a bug in the Makefile for fptools/hslibs/data/edison:

   aratika:/usr/src/packages/BUILD/fptools > make all
   ...
   rm -f edison/Coll/MinHeap.o ; if [ ! -d edison/Coll/MinHeap ]; then mkdir 
edison/Coll/MinHeap; else find edison/Coll/MinHeap -name '*.o' -print | xargs rm -f 
__rm_food ; fi ;    
   ../../ghc/driver/ghc-inplace -O -recomp -cpp -fglasgow-exts -Rghc-timing 
-I../../ghc/includes  -iedison  -iedison/Assoc  -iedison/Coll  -iedison/Seq -static -O 
-split-objs -odir edison/Coll/MinHeap  -syslib lang    -c edison/Coll/MinHeap.hs -o 
edison/Coll/MinHeap.o -osuf o

   MinHeap.hs:320:
       Illegal constraint `Arbitrary (h a)' in instance context
           (Instance contexts must constrain only type variables)

   Compilation had errors

   make[2]: *** [edison/Coll/MinHeap.o] Error 1
   make[1]: *** [all] Error 1
   make: *** [all] Error 1

When you call `make all' from the edison subdir, the compiler and the
flags change magically and dependencies seem to be broken:

   aratika:/usr/src/packages/BUILD/fptools/hslibs/data/edison > make all
   ghc -c -recomp -fglasgow-exts -fallow-undecidable-instances -iImport -i. -iSeq 
-iColl -iAssoc -Wall -fno-warn-unused-matches -fno-warn-name-shadowing 
-funbox-strict-fields Seq/BankersQueue.hs -o Lib/BankersQueue.o

   BankersQueue.hs:30:
       Could not find valid interface file `SequenceDefaults'

   Compilation had errors

   make: *** [BankersQueue.o] Error 1

This is very probably due to the structure of the edison Makefile,
which is very different from all other Makefiles in fptools (i.e.
it contains pattern rules for .hi -> .o, a definition for the compiler
path, etc.). Is there a good reason for this?

Cheers,
   Sven
-- 
Sven Panne                                        Tel.: +49/89/2178-2235
LMU, Institut fuer Informatik                     FAX : +49/89/2178-2211
LFE Programmier- und Modellierungssprachen              Oettingenstr. 67
mailto:[EMAIL PROTECTED]            D-80538 Muenchen
http://www.informatik.uni-muenchen.de/~Sven.Panne

Reply via email to