Dear GHC-Team,

ghc (version 2.01) refuses to compile the following two definitions.
[The first bug is probably (very) well-known.]

> fac 0                 =  1
> fac (n+1)             =  (n+1) * fac n

"Crash.lhs", line 2, column 8: parse error on input: "+"

> data Person           =  Female {firstName, lastName :: String}
>                       |  Male   {firstName, lastName :: String}
>                       deriving (Show)
> isFemale (Female{})   =  True
> isFemale (Male{})     =  False

"Crash.lhs", line 7, column 19: parse error on input: "}"

Ralf

Reply via email to