Dear all,

the Glasgow Haskell Compiler, version 2.0899999999999999 fails to parse
the following fragment:


> (@@)                  :: (Monad m) => (a -> m b) -> (c -> m a) -> c -> m b
> (f @@ g) a            =  g a >>= f

it complains:

Auxiliaries.lhs:52:5: parse error on input: "@@"

Probably @@ is misinterpreted as the beginning of a layered pattern.
Rewriting the definition to

> (@@) f g a            =  g a >>= f

avoids the problem.

Cheers, Ralf

Reply via email to