[Haskell-cafe] Bug in HLint or haskell-src-exts?

Martin Huschenbett huschi at gmx.org
Thu Feb 26 16:49:08 EST 2009

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.



More information about the Haskell-Cafe mailing list