hdocs-0.5.0.0: Haskell docs tool

Safe HaskellNone
LanguageHaskell98

HDocs.Haddock

Contents

Synopsis

Documentation functions

readHaddock :: FilePath -> ExceptT String IO (Map String ModuleDocMap) Source

Read docs from .haddock file

readSources :: [String] -> [FilePath] -> ExceptT String IO (Map String ModuleDocMap) Source

Read docs for haskell modules

readSources_ :: [String] -> [FilePath] -> ExceptT String IO [(String, ModuleDocMap)] Source

Read docs for haskell modules

readSource :: [String] -> FilePath -> ExceptT String IO (String, ModuleDocMap) Source

Read docs for haskell module

readSourcesGhc :: [String] -> [FilePath] -> ExceptT String Ghc [(String, ModuleDocMap)] Source

Read docs for source in Ghc monad

readSourceGhc :: [String] -> FilePath -> ExceptT String Ghc (String, ModuleDocMap) Source

Read docs for haskell module

Extract docs

Utility functions

haddockFiles :: [String] -> ExceptT String IO [FilePath] Source

Get list of haddock files in package db

readPackageInterfaces :: PackageConfig -> ExceptT String IO [InstalledInterface] Source

Read installed interfaces for package

module HDocs.Base

data Ghc a :: * -> *

A minimal implementation of a GhcMonad. If you need a custom monad, e.g., to maintain additional state consider wrapping this monad or using GhcT.

withGhc :: [Flag] -> Ghc a -> IO a