[GHC] #1226: Add flags --full-flag-help and --print-docdir

GHC trac at haskell.org
Wed Oct 10 13:12:55 EDT 2007


#1226: Add flags --full-flag-help and --print-docdir
--------------------------------+-------------------------------------------
    Reporter:  igloo            |        Owner:  igloo     
        Type:  feature request  |       Status:  new       
    Priority:  normal           |    Milestone:  6.8 branch
   Component:  Driver           |      Version:  6.6       
    Severity:  normal           |   Resolution:            
    Keywords:                   |   Difficulty:  Unknown   
          Os:  Unknown          |     Testcase:            
Architecture:  Unknown          |  
--------------------------------+-------------------------------------------
Comment (by guest):

 just so that this doesn't get lost: there's a simple xslt file to extract
 text for a --full-flag-help option here

 http://www.haskell.org/pipermail/cvs-ghc/2007-September/038560.html

 it is simpler than the one for man pages, using sed to define the missing
 ENTITY references, and it brings each flag onto a single line, making it
 ideal for grep.

 now, for a first implementation of --full-flag-help, just generate the
 text file when creating a release/snapshot, install in `ghc --print-
 docdir`, and make the flag print the file (for bonus points, build in the
 pattern filter for those who don't have grep/awk at hand, so that --full-
 flag-help "interactive mode:" gives the ghci flags, and
 "language:instances" gives the language flags related to instances).

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


More information about the Glasgow-haskell-bugs mailing list