#2713: Fixities interact badly with TH under GHC 6.10.1 20081007
------------------------------+---------------------------------------------
Reporter: BenMoseley | Owner:
Type: bug | Status: new
Priority: normal | Milestone:
Component: Template Haskell | Version: 6.10.1
Severity: normal | Resolution:
Keywords: | Difficulty: Unknown
Testcase: | Architecture: Unknown/Multiple
Os: Unknown/Multiple |
------------------------------+---------------------------------------------
Comment (by BenMoseley):
I see - I guess that makes sense. In the original code (which I don't have
access to right now) I'm pretty sure the splice was separating the
"infixr" from the class definition ... so I guess it should really never
have compiled.
(By "worked fine" I mean that the module compiled cleanly and that the
resulting ".hi" file did include the "infixr 3" specification so that
other parts of the code - which required that fixity specification to
compile successfully - had no problem).
Incidentally, I worked around this "issue" by relocating the fixity
declaration - which sounds like the correct thing to do anyway given your
explanation.
I agree that an error message sounds like the right fix.
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/2713#comment:2>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs