Re: hat error
Malcolm Wallace <[email protected]>
| Newsgroups | gmane.comp.lang.haskell.hat |
|---|---|
| Organization | Dept of Computer Science, University of York, UK. |
| Message-ID | <[email protected]> |
> 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