aboutsummaryrefslogtreecommitdiff
path: root/src/Haddock/Options.hs
diff options
context:
space:
mode:
authorHenning Thielemann <git@henning-thielemann.de>2012-04-01 13:03:07 +0200
committerHenning Thielemann <git@henning-thielemann.de>2012-04-01 13:03:07 +0200
commita2bcbcffde1e78a6031132bdf4a1a605978352a8 (patch)
tree6cc2d15c8946d0176fec784d31c87c7ed4c27135 /src/Haddock/Options.hs
parentbc89bcc2b076c13ad559543ebba43603c8ab990c (diff)
add QualOption type for distinction between qualification argument given by the user
and the actual qualification for a concrete module
Diffstat (limited to 'src/Haddock/Options.hs')
-rw-r--r--src/Haddock/Options.hs10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/Haddock/Options.hs b/src/Haddock/Options.hs
index 4e42fd32..3292ba16 100644
--- a/src/Haddock/Options.hs
+++ b/src/Haddock/Options.hs
@@ -229,13 +229,13 @@ optLaTeXStyle :: [Flag] -> Maybe String
optLaTeXStyle flags = optLast [ str | Flag_LaTeXStyle str <- flags ]
-qualification :: [Flag] -> Qualification
+qualification :: [Flag] -> QualOption
qualification flags =
case map (map Char.toLower) [ str | Flag_Qualification str <- flags ] of
- "full":_ -> FullQual
- "local":_ -> LocalQual Nothing
- "relative":_ -> RelativeQual Nothing
- _ -> NoQual
+ "full":_ -> OptFullQual
+ "local":_ -> OptLocalQual
+ "relative":_ -> OptRelativeQual
+ _ -> OptNoQual
verbosity :: [Flag] -> Verbosity