Safe Haskell | None |
---|
Wrapper around Markdown library
- type Docstring = Doc
- parseDocstring :: Text -> Doc
- renderDocstring :: Docstring -> Doc OutputAnnotation
- emptyDocstring :: Docstring
- nullDocstring :: Docstring -> Bool
- noDocs :: (Docstring, [(Name, Docstring)])
- overview :: Docstring -> Docstring
- containsText :: Text -> Docstring -> Bool
Documentation
parseDocstring :: Text -> DocSource
Construct a docstring from a Text that contains Markdown-formatted docs
renderDocstring :: Docstring -> Doc OutputAnnotationSource
Convert a docstring to be shown by the pretty-printer
emptyDocstring :: DocstringSource
The empty docstring
nullDocstring :: Docstring -> BoolSource
Check whether a docstring is emtpy
overview :: Docstring -> DocstringSource
Construct a docstring consisting of the first block-level element of the argument docstring, for use in summaries.
containsText :: Text -> Docstring -> BoolSource
Does a string occur in the docstring?