Hi all,
GHC 7.8 adds --show-options flag that prints all supported command line flags
on standard output.
This can be used to enable autocompletion of command line options for ghc in
shells that support
autocompletion. If you're using bash add this snippet to your ~/.bashrc file:
START
#
On Wed, 16 Apr 2014, Jan Stolarek wrote:
PS. I also added a wiki page:
https://ghc.haskell.org/trac/ghc/wiki/AutocompleteGHCFlags
Feel free to add instructions for other shells.
Zsh autocompletion resides on the haskell wiki [1]. There are also
updated versions of both _cabal and _ghc (PR
Thanks Philip.
ps - I tried to register on trac to add this info to your page but my
registration was marked as spam (even after answering a math question)
I believe you have to contact Herbert about that (CC'd).
In the meantime I added this information to GHC wiki, although it would be nice
On Wed, 16 Apr 2014, Jan Stolarek wrote:
In the meantime I added this information to GHC wiki, although it would be nice
to be able to
use --show-options under zsh as well. From my understanding scripts that you
linked to need to be
manually updated, whereas --show-options displays all flags