diff options
author | Simon Michael <simon@joyful.com> | 2010-09-22 17:58:06 +0000 |
---|---|---|
committer | Simon Michael <simon@joyful.com> | 2010-09-22 17:58:06 +0000 |
commit | 0f8e38017cbb981ea07e52d5a4a7f4736c30718b (patch) | |
tree | b753d4d8317cf3f13323a8db6dbf2493fd460168 /src/Haddock/Types.hs | |
parent | a419044739b732030c6ba8ad7767a802e449026a (diff) |
print haddock coverage info on stdout when generating docs
A module's haddockable items are its exports and the module itself.
The output is lightly formatted so you can align the :'s and sort
for readability.
Diffstat (limited to 'src/Haddock/Types.hs')
-rw-r--r-- | src/Haddock/Types.hs | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/Haddock/Types.hs b/src/Haddock/Types.hs index 33892e49..b0ac6cac 100644 --- a/src/Haddock/Types.hs +++ b/src/Haddock/Types.hs @@ -99,9 +99,12 @@ data Interface = Interface { ifaceInstances :: ![Instance], -- | Documentation of instances defined in the module. - ifaceInstanceDocMap :: Map Name (Doc Name) -} + ifaceInstanceDocMap :: Map Name (Doc Name), + -- | The number of haddockable and haddocked items in the module, as a + -- tuple. Haddockable items are the exports and the module itself. + ifaceHaddockCoverage :: (Int,Int) +} -- | A smaller version of 'Interface' that can be created from Haddock's -- interface files ('InterfaceFile'). |