[Haskell-cafe] Bug in HLint or haskell-src-exts?
niklas.broberg at gmail.com
Sat Feb 28 16:25:10 EST 2009
both of your problems are due to known deficiencies in
haskell-src-exts, and I'm working on solving them. The first comes
from its subpar handling of newtype deriving for MPTCs, the second
from a weird case where you (currently) need spaces around -, i.e. in
your example write (x - y) and HLint/haskell-src-exts will accept it.
Thanks for reporting,
ps. I really ought to get myself a bug tracker...
On Thu, Feb 26, 2009 at 10:49 PM, Martin Huschenbett <huschi at gmx.org> wrote:
> 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.
> Haskell-Cafe mailing list
> Haskell-Cafe at haskell.org
More information about the Haskell-Cafe