
#9259: GHCi should list its available command line options -------------------------------------+------------------------------------ Reporter: jstolarek | Owner: Type: feature request | Status: new Priority: normal | Milestone: Component: Driver | Version: Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: Unknown/Multiple Type of failure: None/Unknown | Difficulty: Unknown Test Case: | Blocked By: Blocking: | Related Tickets: -------------------------------------+------------------------------------ Changes (by jstolarek): * difficulty: Easy (less than 1 hour) => Unknown Comment: After a quick look at the source code I'm not sure if this is that simple. `--show-options` triggers pre-startup mode, which terminates the compiler before it even starts. But `ghci` is an alias for `ghc --interactive`, so we'd have to recognize a special case of `--interactive` and `--show- options` being used at the same time. That's probably possible, but it requires more work than I'm willing to put into this at the moment. Leaving this as a newcomer-friendly task. The relevant code is in [[GhcFile(ghc/Main.hs)]]. It is also important to distinguish which options are supported with GHCi and which are not. I'm not sure if this information is stored in one place somewhere in the compiler, but we need to have access to it. When this is fixed the user documentation needs to be updated as well. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/9259#comment:2 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler