[GHC] #10820: Provide a way to detect what extensions are enabled via TH

GHC ghc-devs at haskell.org
Tue Sep 1 06:47:29 UTC 2015


#10820: Provide a way to detect what extensions are enabled via TH
-------------------------------------+-------------------------------------
        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:
-------------------------------------+-------------------------------------
Changes (by goldfire):

 * milestone:   => 7.12.1


Comment:

 I've wanted this, too. It should be able to happen by 7.12.

 But, what data type to use for the extensions? Would it work to have
 `template-haskell` depend on `Cabal` to pull the extension type from
 there? My guess: no. Would it work to have `template-haskell` depend on
 `ghc` and pull the type from `DynFlags`? My guess: yes.

--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/10820#comment:2>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler


More information about the ghc-tickets mailing list