diff options
author | David Waern <david.waern@gmail.com> | 2010-10-16 17:34:30 +0000 |
---|---|---|
committer | David Waern <david.waern@gmail.com> | 2010-10-16 17:34:30 +0000 |
commit | 0a93ff502d346fbbe809a336814a837aa10f120e (patch) | |
tree | 2fc6a1e503234d4f5c68aca889ab1b1a3456e11d /src/Haddock/Options.hs | |
parent | 3ded4303dee8cf4cca6a91382f54bed37546631f (diff) |
Solve conflicts
Diffstat (limited to 'src/Haddock/Options.hs')
-rw-r--r-- | src/Haddock/Options.hs | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/Haddock/Options.hs b/src/Haddock/Options.hs index 0a8ebe94..1fe7a9f5 100644 --- a/src/Haddock/Options.hs +++ b/src/Haddock/Options.hs @@ -222,6 +222,16 @@ optDumpInterfaceFile flags = optLast [ str | Flag_DumpInterface str <- flags ] optLaTeXStyle :: [Flag] -> Maybe String optLaTeXStyle flags = optLast [ str | Flag_LaTeXStyle str <- flags ] + +optQualification :: [Flag] -> Qualification +optQualification flags = + case map (map Char.toLower) [ str | Flag_Qualification str <- flags ] of + "full":_ -> FullQuali + "local":_ -> LocalQuali Nothing + "relative":_ -> RelativeQuali Nothing + _ -> NoQuali + + verbosity :: [Flag] -> Verbosity verbosity flags = case [ str | Flag_Verbosity str <- flags ] of |