diff options
author | Mateusz Kowalczyk <fuuzetsu@fuuzetsu.co.uk> | 2013-09-05 03:21:44 +0100 |
---|---|---|
committer | Simon Hengel <sol@typeful.net> | 2013-09-18 22:43:34 +0200 |
commit | 51315107171402cf2bef93d5ff06c87d070a078b (patch) | |
tree | 64cc91b2824d526dc9f36c4fb29a948749c9aa54 /src/Haddock | |
parent | 9697748a1619a0fc892393a11c3a05da3f69e787 (diff) |
Fixes #231
Diffstat (limited to 'src/Haddock')
-rw-r--r-- | src/Haddock/InterfaceFile.hs | 2 | ||||
-rw-r--r-- | src/Haddock/Options.hs | 4 |
2 files changed, 4 insertions, 2 deletions
diff --git a/src/Haddock/InterfaceFile.hs b/src/Haddock/InterfaceFile.hs index 1127205d..4811f64f 100644 --- a/src/Haddock/InterfaceFile.hs +++ b/src/Haddock/InterfaceFile.hs @@ -15,7 +15,7 @@ module Haddock.InterfaceFile ( InterfaceFile(..), ifPackageId, readInterfaceFile, nameCacheFromGhc, freshNameCache, NameCacheAccessor, - writeInterfaceFile, binaryInterfaceVersion + writeInterfaceFile, binaryInterfaceVersion, binaryInterfaceVersionCompatibility ) where diff --git a/src/Haddock/Options.hs b/src/Haddock/Options.hs index 46f9def7..a362fd05 100644 --- a/src/Haddock/Options.hs +++ b/src/Haddock/Options.hs @@ -62,6 +62,7 @@ data Flag | Flag_Help | Flag_Verbosity String | Flag_Version + | Flag_CompatibleInterfaceVersions | Flag_InterfaceVersion | Flag_UseContents String | Flag_GenContents @@ -131,6 +132,8 @@ options backwardsCompat = "display this help and exit", Option ['V'] ["version"] (NoArg Flag_Version) "output version information and exit", + Option [] ["compatible-interface-versions"] (NoArg Flag_CompatibleInterfaceVersions) + "output compatible interface file versions and exit", Option [] ["interface-version"] (NoArg Flag_InterfaceVersion) "output interface file version and exit", Option ['v'] ["verbosity"] (ReqArg Flag_Verbosity "VERBOSITY") @@ -272,4 +275,3 @@ readIfaceArgs flags = [ parseIfaceOption s | Flag_ReadInterface s <- flags ] optLast :: [a] -> Maybe a optLast [] = Nothing optLast xs = Just (last xs) - |