Skip to content

Commit 74d1173

Browse files
committed
Prepare haddock-library-1.4.5 release
1 parent 619fd64 commit 74d1173

File tree

3 files changed

+15
-2
lines changed

3 files changed

+15
-2
lines changed

haddock-library/haddock-library.cabal

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@ bug-reports: https://github.com/haskell/haddock/issues
1515
category: Documentation
1616
build-type: Simple
1717
cabal-version: >= 2.0
18-
18+
extra-source-files:
19+
CHANGES.md
1920
library
2021
default-language: Haskell2010
2122

haddock-library/src/Documentation/Haddock/Markup.hs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
1-
module Documentation.Haddock.Markup where
1+
-- | @since 1.4.5
2+
module Documentation.Haddock.Markup (
3+
markup
4+
, idMarkup
5+
) where
26

37
import Documentation.Haddock.Types
48

haddock-library/src/Documentation/Haddock/Types.hs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,14 @@ data DocH mod id
8181
| DocHeader (Header (DocH mod id))
8282
deriving (Eq, Show, Functor, Foldable, Traversable)
8383

84+
-- | 'DocMarkupH' is a set of instructions for marking up documentation.
85+
-- In fact, it's really just a mapping from 'Doc' to some other
86+
-- type [a], where [a] is usually the type of the output (HTML, say).
87+
-- Use 'Documentation.Haddock.Markup.markup' to apply a 'DocMarkupH' to
88+
-- a 'DocH'.
89+
--
90+
-- @since 1.4.5
91+
--
8492
data DocMarkupH mod id a = Markup
8593
{ markupEmpty :: a
8694
, markupString :: String -> a

0 commit comments

Comments
 (0)