hdocs-0.2.0.0: Haskell docs tool

Safe HaskellNone

HDocs.Module

Contents

Synopsis

Types

type ModuleDocMap = Map String (Doc String)Source

Documentations in module

type DocsM a = ErrorT String (StateT (Map String ModuleDocMap) IO) aSource

Docs state

runDocsM :: DocsM a -> IO (Either String a)Source

Run docs monad

Helpers

formatDoc :: Doc String -> StringSource

Format documentation to plain text.

Get module docs

moduleDocs :: [String] -> String -> DocsM ModuleDocMapSource

Load module documentation

fileDocs :: [String] -> FilePath -> DocsM ModuleDocMapSource

Load file documentation

docs :: [String] -> String -> DocsM ModuleDocMapSource

Load docs for file or module