[Haskell-cafe] parse error in pattern, and byte code interpreter
allbery.b at gmail.com
Sun Jan 15 00:33:52 CET 2012
On Sat, Jan 14, 2012 at 18:18, TP <paratribulations at free.fr> wrote:
> Times expr1 Plus( expr2 expr3 ) ->
OCaml pattern syntax is not the same as Haskell pattern syntax. The
correct way to write that pattern is
Times expr1 (Plus expr2 expr3)
This is consistent with Haskell not using parentheses for function
parameters, since all calls are curried.
brandon s allbery allbery.b at gmail.com
wandering unix systems administrator (available) (412) 475-9364 vm/sms
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Haskell-Cafe