Hello again,

I found another problem I dont understand:


evalOp :: Op -> (Integer -> Integer -> Integer)
evalOp op = case op of
  Plus  -> (+)
  Minus -> \x y -> max 0 (x-y)
  Times -> (*)


brings a parse error, too:


Interpreter.hs:92:3: Parse failure, Parse error in expression: DVar [Ident "x",Ident "...



The mentioned position is the "T" of "Times" in the last line.

Regards,

Martin.
_______________________________________________
Haskell-Cafe mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to