Hello!
After attempting to compile the following file with the new ghc 2.02, I got
a message about an internal compiler bug. Here is the console session 
(Windows NT 4.0 Service Pack 2, cygwin32 17.1) :

=====================================================================
bash$ ghc bug.hs

*** Pattern-matching error within GHC!

This is a compiler bug; please report it to
[EMAIL PROTECTED]

Fail: "main/CmdLineOpts.lhs", line 451: incomplete pattern(s) to match in
function "simpl_sep"

=====================================================================
The file "bug.hs" is just:

----------------------------------------------------------------------------
---------------------------------------
fact :: Integer -> Integer -> Integer
fact n a = if (n == 1) then  a else fact (n - 1) (a * n)
----------------------------------------------------------------------------
---------------------------------------

Is this really a problem?

Thanks for your help and thanks for a great tool !

-- Peter Caven,  [EMAIL PROTECTED]



Reply via email to