Hi,

thanks for the report - the support for `seq` in 2.07 is only via
the gcc backend, not the native code generator, I'm afraid. Add
-fvia-C to your command line and you should be fine..

--Sigbjorn

Ch. A. Herrmann writes:
> Hello,
> 
> concerning my previous mail:
> 
> during compilation with the binary installed version of
> ghc-2.07 for Solaris, I got the following message:
> -------------------------------------------------------------------------------
> *** Pattern-matching error within GHC!
> 
> This is a compiler bug; please report it to [EMAIL PROTECTED]
> 
> Fail: "nativeGen/MachCode.lhs", line 1024: pattern-matching failed in case
> -------------------------------------------------------------------------------
> I found the part of the source that caused the error,
> it is inside a case expression:
> 
>    EInt i          -> i `seq` (TInt SUndef, EInt i)
> 
> If one removes "i `seq`" it compiles without errors.
> However, the "seq" has been useful for me in debugging,
> because I get error messages that contain expressions
> that are further evaluated. I'm using this regularly
> when developing with hugs. Please tell me if that's
> a bad style, and the compiler should give an error
> message there.
> -------------------------------------------------------------------------------
>  Christoph Herrmann
>  E-mail:  [EMAIL PROTECTED]
>  WWW:     http://brahms.fmi.uni-passau.de/cl/staff/herrmann.html

Reply via email to