[GHC] #10823: Don't mark functions with annotations as dead
GHC
ghc-devs at haskell.org
Thu Sep 3 21:43:28 UTC 2015
#10823: Don't mark functions with annotations as dead
-------------------------------------+-------------------------------------
Reporter: spinda | Owner:
Type: feature request | Status: new
Priority: normal | Milestone: 7.12.1
Component: Template Haskell | Version: 7.10.2
Resolution: | Keywords:
Operating System: Unknown/Multiple | Architecture:
| Unknown/Multiple
Type of failure: None/Unknown | Test Case:
Blocked By: | Blocking:
Related Tickets: | Differential Revisions:
-------------------------------------+-------------------------------------
Comment (by spinda):
{{{lq}}} is a [https://hackage.haskell.org/package/template-
haskell-2.5.0.0/docs/Language-Haskell-TH-Quote.html#t:QuasiQuoter
QuasiQuoter], and in the declaration context it produces a list of
{{{Dec}}} containing a {{{PragmaD (AnnP (ValueAnnotation (mkName "gt"))
IsInline)}}}. GHC picks this up, converts it to {{{HsDecl}}}, and feeds it
through the renaming/typechecking phase along with all the other
declarations in the group.
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/10823#comment:8>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list