aboutsummaryrefslogtreecommitdiff
path: root/src/Haddock/Types.hs
diff options
context:
space:
mode:
authorTobias Brandt <tob.brandt@gmail.com>2010-08-27 15:50:28 +0000
committerTobias Brandt <tob.brandt@gmail.com>2010-08-27 15:50:28 +0000
commit8871af09420160e7ca770c0ab72d8b7f6be70380 (patch)
tree7bccaf1172dc0b266ececa8b827eaa3e26bca3bd /src/Haddock/Types.hs
parent2b87648737ad5b07e30d9bb03f7c4e3953566c24 (diff)
adding support for local and relative name qualification
Diffstat (limited to 'src/Haddock/Types.hs')
-rw-r--r--src/Haddock/Types.hs7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/Haddock/Types.hs b/src/Haddock/Types.hs
index 0f868555..02e80db6 100644
--- a/src/Haddock/Types.hs
+++ b/src/Haddock/Types.hs
@@ -355,7 +355,12 @@ data DocOption
deriving (Eq, Show)
-- | Option controlling how to qualify names
-data Qualification = NoQuali | FullQuali
+data Qualification
+ = NoQuali -- ^ Never qualify any names
+ | FullQuali -- ^ Qualify all names fully
+ | LocalQuali (Maybe Module) -- ^ Qualify all imported names fully
+ | RelativeQuali (Maybe Module) -- ^ Like local, but strip module prefix
+ -- from modules in the same hierarchy
-----------------------------------------------------------------------------
-- * Error handling