Misc. bugs in HsParser

Anders Lau Olsen alauo at mip.sdu.dk
Fri Nov 9 01:22:17 EST 2001


HsParser does not allow method declarations to follow a default
implementation of a method.

    class G a where
        f :: a -> a
        f x = x
        g :: a -> a

Optional semicolons or empty statements are not permitted in
do-expressions.

    f x = do ;; x ;

That is probably the reason why this example fails to parse too:

    f x = do
        y
        where y = x

Anders Lau Olsen





More information about the Glasgow-haskell-bugs mailing list