RE: ghc5.02 can't read its own interface file.

2001-10-18 Thread Simon Marlow
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

[5.02] Bug with existentially-quantified constructors

2001-10-18 Thread Volker Stolz
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 ())]

RE: ghc5.02 can't read its own interface file.

2001-10-18 Thread Simon Peyton-Jones
| 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