[GHC] #8930: GHC API: List of available Pragmas

#8930: GHC API: List of available Pragmas ------------------------------------+------------------------------------- Reporter: nh2 | Owner: Type: feature request | Status: new Priority: normal | Milestone: Component: GHC API | Version: 7.6.3 Keywords: | Operating System: Unknown/Multiple Architecture: Unknown/Multiple | Type of failure: None/Unknown Difficulty: Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | ------------------------------------+------------------------------------- From https://github.com/kazu-yamamoto/ghc- mod/issues/103#issuecomment-14827257: It would be useful if the GHC API allowed us to query a list of supported pragmas. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8930 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#8930: GHC API: List of available Pragmas -------------------------------------+------------------------------------ Reporter: nh2 | Owner: Type: feature request | Status: new Priority: normal | Milestone: Component: GHC API | Version: 7.6.3 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: Unknown/Multiple Type of failure: None/Unknown | Difficulty: Unknown Test Case: | Blocked By: Blocking: | Related Tickets: -------------------------------------+------------------------------------ Comment (by hvr): Afaics, this list would need to be maintained redundantly, as the current pragma identifiers are hardcoded in the parser grammar (see [[GhcFile(compiler/parser/Parser.y.pp)]] around line 254) -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8930#comment:1 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler
participants (1)
-
GHC