[Hat] hat error
Malcolm Wallace
hat@haskell.org
Wed, 17 Jul 2002 17:48:04 +0100
> legion:haskell> hmake -hat SimonGA
> hat-trans SimonGA.hs
> Fail: AuxFixity.hs:92: Non-exhaustive patterns in case
I think this is due to a fragment of code like the following:
(-1.0 <= x && x <= -0.5)
Hat's resolution of the priority and fixity of the infix operators is
being tripped up by the close conjuction of <= and - near the right of
the expression. Until we find a fix for this, a workaround is simply to
parenthesise negative numbers, e.g.
((-1.0) <= x && x <= (-0.5))
Regards,
Malcolm