aboutsummaryrefslogtreecommitdiff
path: root/src/Haddock
diff options
context:
space:
mode:
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"
]