AbsCStixGen.gencode panic

2001-11-16 Thread Volker Stolz
Beware, to reproduce you need c2hs gtk+hs! Luckily, I can use the -O switch (does that option mean turn errors OFF?) to get a perfectly working binary! ghc -c Get.lhs -o Get.o `c2hs-config --cflags` -fglasgow-exts -package lang ghc-5.02.1: panic! (the `impossible' happened, GHC version

Re: AbsCStixGen.gencode panic

2001-11-16 Thread Sigbjorn Finne
The native code generator only handles 'foreign import's with a static target, which is why you're seeing this (HEAD handles this situation a little bit more gracefully). Use -fvia-C (or -O, which implicitly does the same thing). --sigbjorn - Original Message - From: Volker Stolz

Re: HDirect (CVS version) - some bugs

2001-11-16 Thread Sigbjorn Finne
Thanks for the bug report. I've checked in a fix for 1), but for 2), I suggest instead of doing void pj_set_finder( const char *(*)(const char *) ); you express this as typedef [string]char* (*StringTrans) ([in,string]char* arg1); void pj_set_finder([in]StringTrans arg); as HDirect