[Haskell-cafe] parse error in pattern, and byte code interpreter

Brandon Allbery 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...
URL: <http://www.haskell.org/pipermail/haskell-cafe/attachments/20120114/29b27108/attachment.htm>


More information about the Haskell-Cafe mailing list