The attached interface file SimpleForm.hi provokes the
following error from ghc5.02:
MainsimpleFormEx.hs:6:
failed to load interface for `SimpleForm':
Bad interface file: /home/ger/uni/htk/toolkit/SimpleForm.hi
/home/ger/uni/htk/toolkit/SimpleForm.hi:155
The following program can be compiled using
ghc-5.02 --make test.lhs -fglasgow-exts
but segfaults.
./a.out
foo
Segmentation fault
\begin{code}
module Main where
import IO
data DS = forall a. C (a - IO ())
main = do
let (li:st:[]) = [C (print :: String - IO ()), C (print :: Int - IO ())]
| MainsimpleFormEx.hs:6:
| failed to load interface for `SimpleForm':
| Bad interface file: /home/ger/uni/htk/toolkit/SimpleForm.hi
| /home/ger/uni/htk/toolkit/SimpleForm.hi:155
| Interface file parse error; on input ` label '
|
| What is going on? I can send the