#5333: Arrow command combinators and infixr cause the desugarer to fail
----------------------------------+-----------------------------------------
Reporter: peteg | Owner:
Type: bug | Status: new
Priority: normal | Milestone:
Component: Compiler (Parser) | Version: 7.0.3
Keywords: | Testcase:
Blockedby: | Difficulty:
Os: Unknown/Multiple | Blocking:
Architecture: Unknown/Multiple | Failure: GHC rejects valid program
----------------------------------+-----------------------------------------
Comment(by ross):
The problem is that the renamer attaches a table of rebindable names to
each top-level command (body of proc or argument of a form, including
infix operators) before it does the fix-up for right associativity. That
re-arrangement moves the left argument out of scope of the table.
One fix would be to add these tables in a separate pass after renaming.
But I was wondering whether having a separate table on each argument of a
form is particularly useful, since it's not very easy to have different
names in scope there than at the proc.
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/5333#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