Christian Maeder wrote:
Hi,
I would like haskell to accept the following (currently illegal)
expressions as syntactically valid prefix applications:
f = id \ _ -> []
g = id let x = [] in x
h = id case [] of [] -> []
i = id do []
j = id if True then [] else []
The rational is that expressions s
Very curious. It does indeed look as though the strictness analyser is
confused; but it should certainly not be confused by mutual recursion. I'll
definitely look into it. But don't hold your breath -- it's a very busy
fortnight.
Simon
| -Original Message-
| From: [EMAIL PROTECTED] [
Brian Hulley schrieb:
> Christian Maeder wrote:
>> (In fact, maybe for haskell' "$" could be changed to a keyword.)
>>
>
> Alternatively the # symbol could be removed from the pool of symbol
> chars and used to construct syntactic sugar so you could use
>
> f = id #$ \_ -> []
>
> to mean
Simon Peyton-Jones writes:
> | Add {-# OPTIONS_GHC -fno-mono-pat-binds #-}
> |
> | You are the fourth person to discover monomorphic pattern bindings :)
>
> Yes, the details are here
>
> http://hackage.haskell.org/trac/haskell-prime/wiki/MonomorphicPatternBindings
>
> If you could snip