[GHC] #8207: Pretty Printer for textual version of Language (name) in DynFlags (was: Show instance for Language in DynFlags)
GHC
ghc-devs at haskell.org
Sun Sep 1 05:45:42 CEST 2013
#8207: Pretty Printer for textual version of Language (name) in DynFlags
-------------------------------------+------------------------------------
Reporter: Fuuzetsu | Owner:
Type: feature request | Status: new
Priority: low | Milestone:
Component: GHC API | Version: 7.7
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 carter):
to further clarify, based upon further discussion on IRC,
{{{
[23:39:41] <Fuuzetsu> Yep, all I want is Language -> String out of
only having DynFlags which provides Maybe Language.
}}}
Its worth noting that this probably shouldn't be a show instance, because
Language Standards need not have only the form
(capital letter)(aphanumeric*).
The key point is a function to pretty print the name of the Language
should be exposed. And probably more future proof to funny names if its
not done via Show specifically.
ie
{{{
renderLanguageName :: Language -> String
}}}
or the like
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/8207#comment:1>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list