aboutsummaryrefslogtreecommitdiff
path: root/src/Haddock
diff options
context:
space:
mode:
authorDavid Waern <davve@dtek.chalmers.se>2007-10-20 14:24:23 +0000
committerDavid Waern <davve@dtek.chalmers.se>2007-10-20 14:24:23 +0000
commit122bb92ffc28553b75e731639d81ce33e1cf2a28 (patch)
tree6375f06a318109c327d70045ceab967e2190b092 /src/Haddock
parent609227fd61e9c0cca2a252ccd250544403357c97 (diff)
Add --ghc-version option
Diffstat (limited to 'src/Haddock')
-rw-r--r--src/Haddock/Options.hs5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/Haddock/Options.hs b/src/Haddock/Options.hs
index bfc8ae27..9770f37d 100644
--- a/src/Haddock/Options.hs
+++ b/src/Haddock/Options.hs
@@ -84,6 +84,7 @@ data Flag
| Flag_UsePackage String
| Flag_OptGhc String
| Flag_GhcLibDir String
+ | Flag_GhcVersion
deriving (Eq)
@@ -152,5 +153,7 @@ options backwardsCompat =
Option [] ["use-package"] (ReqArg Flag_UsePackage "PACKAGE")
"the modules being processed depend on PACKAGE",
Option [] ["optghc"] (ReqArg Flag_OptGhc "OPTION")
- "Forward option to GHC"
+ "Forward option to GHC",
+ Option [] ["ghc-version"] (NoArg Flag_GhcVersion)
+ "output GHC version in numeric format"
]