#2700: Template Haskell pretty printer arrow always associates right
------------------------------------------------+---------------------------
Reporter: aprocter | Owner:
Type: bug | Status: new
Priority: normal | Component: Compiler
Version: 6.8.3 | Severity: critical
Keywords: th pprint pretty print template | Testcase:
Architecture: Unknown/Multiple | Os: Unknown/Multiple
------------------------------------------------+---------------------------
When I run a Template Haskell-generated tysig declaration through pprint,
the associativity for -> comes out incorrectly, e.g.:
sigD (mkName "foo") [t|(Int -> Bool) -> Bool|]
renders as:
foo :: GHC.Base.Int -> GHC.Base.Bool -> GHC.Base.Bool
(note that it's dropping the parens, associating right instead of left)
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/2700>
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