RE: Feature proposal: ghc --full-flag-help ?

What about integrating a complete list into ghc which can accessed by ghc --full-flag-help | less ?
Sure I can fake it and get that list out of the html documentation. I just want to know if someone else would like this flag, too
I would find it very useful too. Ganesh ============================================================================== Please access the attached hyperlink for an important electronic communications disclaimer: http://www.credit-suisse.com/legal/en/disclaimer_email_ib.html ==============================================================================

Hi
What about integrating a complete list into ghc which can accessed by ghc --full-flag-help | less ?
Sure I can fake it and get that list out of the html documentation. I just want to know if someone else would like this flag, too
I would find it very useful too.
Me too. At the same time --help should probably direct the user at the section of the manual which deals with flags, as well as the documentation overview. I always find myself searching for the flags reference Thanks Neil

Suppose ghc --full-flag-help simply printed the URL http://www.haskell.org/ghc/docs/latest/html/users_guide/flag-reference.html Now you can see it in your web browser by clicking on it. Simon | -----Original Message----- | From: glasgow-haskell-users-bounces@haskell.org [mailto:glasgow-haskell-users-bounces@haskell.org] On | Behalf Of Neil Mitchell | Sent: 13 March 2007 13:08 | To: Sittampalam, Ganesh | Cc: glasgow-haskell-users@haskell.org | Subject: Re: Feature proposal: ghc --full-flag-help ? | | Hi | | > > What about integrating a complete list into ghc which can accessed by | > > ghc --full-flag-help | less ? | > | > > Sure I can fake it and get that list out of the html documentation. I | > > just want to know if someone else would like this flag, too | > | > I would find it very useful too. | | Me too. At the same time --help should probably direct the user at the | section of the manual which deals with flags, as well as the | documentation overview. I always find myself searching for the flags | reference | | Thanks | | Neil | _______________________________________________ | Glasgow-haskell-users mailing list | Glasgow-haskell-users@haskell.org | http://www.haskell.org/mailman/listinfo/glasgow-haskell-users

Hello Simon, Tuesday, March 13, 2007, 5:28:30 PM, you wrote:
Suppose ghc --full-flag-help simply printed the URL
http://www.haskell.org/ghc/docs/latest/html/users_guide/flag-reference.html Now you can see it in your web browser by clicking on it.
my usual warning: not anyone has 24h internet connection. i've switched to adsl just 1 month ago. printing url for *installed* documentation may be better (and it will reflect actual flags supported by *this* ghc version) -- Best regards, Bulat mailto:Bulat.Ziganshin@gmail.com

| > Suppose ghc --full-flag-help simply printed the URL | > | > http://www.haskell.org/ghc/docs/latest/html/users_guide/flag-reference.html | > Now you can see it in your web browser by clicking on it. | | my usual warning: not anyone has 24h internet connection. i've | switched to adsl just 1 month ago. printing url for *installed* | documentation may be better (and it will reflect actual flags | supported by *this* ghc version) Indeed, the installed version would be much better S

| > Suppose ghc --full-flag-help simply printed the URL | > http://www.haskell.org/ghc/docs/latest/html/users_guide/flag-reference.html | > Now you can see it in your web browser by clicking on it.
Indeed, the installed version would be much better
it would indeed be kind of nice if ghc (perhaps via ghc-pkg??) knew if and where its documentation was installed. but i consult the locally installed users' guide quite as often on other topics than flags, and usually have several ghcs installed, and some ghc installations appear to come without, or with partial html docs (for whatever reason), and i have at least one editor-script (*) that needs to figure out where the html docs are for the ghc in $PATH (that editor-script did indeed start out as a convenient way to get at the GHC and library docs while editing Haskell code in VIM, and currently tries to guess the docdir from the libdir, which won't work in general). so, how about (in analogy to --print-libdir): ghc --print-docdir c:/ghc/ghc-6.6/doc/html or whereever the local docs are rooted, if there are local docs, and ghc --print-docdir http://www.haskell.org/ghc/docs/6.6/html/ if there are no local docs installed (note the paths to version-specific docs). currently, adding "/users_guide/flag-reference.html" to the result would lead to the appropriate section for flags, which could be done by a simple wrapper, and i'd find --print-docdir more generally useful. claus (*) Doc.vim (finding haddocks, auto-completing names, adding imports; for VIM) http://www.cs.kent.ac.uk/people/staff/cr3/toolbox/haskell/Vim/Doc.vim

Sorry, but I'm not always connected to the Internet. I'd like to be able to get flag help easily anyway. -- Lennart On Mar 13, 2007, at 14:28 , Simon Peyton-Jones wrote:
Suppose ghc --full-flag-help simply printed the URL http://www.haskell.org/ghc/docs/latest/html/users_guide/ flag-reference.html Now you can see it in your web browser by clicking on it.
Simon
| -----Original Message----- | From: glasgow-haskell-users-bounces@haskell.org [mailto:glasgow- haskell-users-bounces@haskell.org] On | Behalf Of Neil Mitchell | Sent: 13 March 2007 13:08 | To: Sittampalam, Ganesh | Cc: glasgow-haskell-users@haskell.org | Subject: Re: Feature proposal: ghc --full-flag-help ? | | Hi | | > > What about integrating a complete list into ghc which can accessed by | > > ghc --full-flag-help | less ? | > | > > Sure I can fake it and get that list out of the html documentation. I | > > just want to know if someone else would like this flag, too | > | > I would find it very useful too. | | Me too. At the same time --help should probably direct the user at the | section of the manual which deals with flags, as well as the | documentation overview. I always find myself searching for the flags | reference | | Thanks | | Neil | _______________________________________________ | Glasgow-haskell-users mailing list | Glasgow-haskell-users@haskell.org | http://www.haskell.org/mailman/listinfo/glasgow-haskell-users _______________________________________________ Glasgow-haskell-users mailing list Glasgow-haskell-users@haskell.org http://www.haskell.org/mailman/listinfo/glasgow-haskell-users

A full listing of the available flags would be useful too for a hypothetic bash complete mode. I think that's how the bash completion package for darcs does it. And you know, with those three or four words compound flags, with their number rising to .. nearly a hundred?, this would be a very desirable thing to have, much more so than the darcs one. On the other hand, both --full-flag-help and the bash completion package mode seem like a very trivial hacking task. Any GHC hackers around? /me hides under a pile of work and other diversions Cheers pepe On 13/03/2007, at 20:33, Lennart Augustsson wrote:
Sorry, but I'm not always connected to the Internet. I'd like to be able to get flag help easily anyway.
-- Lennart
On Mar 13, 2007, at 14:28 , Simon Peyton-Jones wrote:
Suppose ghc --full-flag-help simply printed the URL http://www.haskell.org/ghc/docs/latest/html/users_guide/ flag-reference.html Now you can see it in your web browser by clicking on it.
Simon
| -----Original Message----- | From: glasgow-haskell-users-bounces@haskell.org [mailto:glasgow- haskell-users-bounces@haskell.org] On | Behalf Of Neil Mitchell | Sent: 13 March 2007 13:08 | To: Sittampalam, Ganesh | Cc: glasgow-haskell-users@haskell.org | Subject: Re: Feature proposal: ghc --full-flag-help ? | | Hi | | > > What about integrating a complete list into ghc which can accessed by | > > ghc --full-flag-help | less ? | > | > > Sure I can fake it and get that list out of the html documentation. I | > > just want to know if someone else would like this flag, too | > | > I would find it very useful too. | | Me too. At the same time --help should probably direct the user at the | section of the manual which deals with flags, as well as the | documentation overview. I always find myself searching for the flags | reference | | Thanks | | Neil | _______________________________________________ | Glasgow-haskell-users mailing list | Glasgow-haskell-users@haskell.org | http://www.haskell.org/mailman/listinfo/glasgow-haskell-users _______________________________________________ Glasgow-haskell-users mailing list Glasgow-haskell-users@haskell.org http://www.haskell.org/mailman/listinfo/glasgow-haskell-users
_______________________________________________ Glasgow-haskell-users mailing list Glasgow-haskell-users@haskell.org http://www.haskell.org/mailman/listinfo/glasgow-haskell-users

Simon Peyton-Jones
Suppose ghc --full-flag-help simply printed the URL http://www.haskell.org/ghc/docs/latest/html/users_guide/flag-reference.html
Or suppose it did 'system("man ghc")'? -k -- If I haven't seen further, it is by standing in the footprints of giants
participants (8)
-
Bulat Ziganshin
-
Claus Reinke
-
Ketil Malde
-
Lennart Augustsson
-
Neil Mitchell
-
Pepe Iborra
-
Simon Peyton-Jones
-
Sittampalam, Ganesh