[GHC] #10314: ApiAnnotations: mkHsForAllTy discards parens
GHC
ghc-devs at haskell.org
Mon Apr 20 13:42:42 UTC 2015
#10314: ApiAnnotations: mkHsForAllTy discards parens
-------------------------------------+-------------------------------------
Reporter: alanz | Owner: alanz
Type: bug | Status: new
Priority: normal | Milestone: 7.10.2
Component: Compiler | Version: 7.10.1
Resolution: | Keywords:
Operating System: Unknown/Multiple | ApiAnnotations
Type of failure: None/Unknown | Architecture:
Blocked By: | Unknown/Multiple
Related Tickets: | Test Case:
| Blocking:
| Differential Revisions:
-------------------------------------+-------------------------------------
Comment (by alanz):
The `mkHsForAllTy` case is safe, as `ignoreParens` is only used in the
conditional part.
But,
{{{#!hs
mk_forall_ty exp tvs (L _ (HsParTy ty)) = mk_forall_ty exp tvs ty
}}}
does strip parens.
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/10314#comment:2>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list