nhc doesn't cope with funlhs -> ( funlhs ) apat {apat}

Hi This module: module Q where f :: Int -> Int -> Int (f a) b = a + b causes Fail: Need infix operator at 5:9 (5:9 being the b) but it is valid as funlhs -> ( funlhs ) apat {apat} Thanks Ian

This module: module Q where f :: Int -> Int -> Int (f a) b = a + b causes Fail: Need infix operator at 5:9 (5:9 being the b) but it is valid as funlhs -> ( funlhs ) apat {apat}
This is a known (and documented) bug in nhc98's parser. It is not easy to fix. Regards, Malcolm

On Wed, Dec 19, 2001 at 05:58:39PM +0000, Malcolm Wallace wrote:
This module: module Q where f :: Int -> Int -> Int (f a) b = a + b causes Fail: Need infix operator at 5:9 (5:9 being the b) but it is valid as funlhs -> ( funlhs ) apat {apat}
This is a known (and documented) bug in nhc98's parser. It is not easy to fix.
Bother. OK, it looks like I will have to switch to ghc for my main testing then. Thanks Ian
participants (2)
-
Ian Lynagh
-
Malcolm Wallace