#1880: Unify flag descriptions to generate both docs and code
----------------------+-----------------------------------------------------
Reporter: simonmar | Owner:
Type: task | Status: new
Priority: normal | Milestone: 6.10 branch
Component: Compiler | Version: 6.8.1
Severity: normal | Resolution:
Keywords: | Difficulty: Unknown
Testcase: | Architecture: Unknown
Os: Unknown |
----------------------+-----------------------------------------------------
Comment (by duncan):
I think we're getting off-topic. As I understand it, this ticket is about
generating all the flags related features (code and docs) from one
description not about ghc knowing where someone installed the user guide.
If that is on topic then I'd add that I don't actually see what problem
`ghc --print-docdir` is solving. Afaik, no other program has such a thing.
I'd also like to add a plug for command line flag name completion. We've
added that feature in `cabal-install` and it's enormously helpful. It
saves typing but most importantly saves having to remember a lot of flag
names. With a little support in ghc itself the scripts for bash or other
standard shells become pretty trivial. Eg the `cabal` program has a
`--list-options` flag which prints each flag, one per line.
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/1880#comment:7>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
_______________________________________________
Glasgow-haskell-bugs mailing list
Glasgow-haskell-bugs@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs