hdocs-0.5.3.1: 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

haddockFilesF :: DynFlags -> ExceptT String IO [FilePath] Source #

Get list of haddock files in package db

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.

Instances
Monad Ghc 
Instance details

Defined in GhcMonad

Methods

(>>=) :: Ghc a -> (a -> Ghc b) -> Ghc b #

(>>) :: Ghc a -> Ghc b -> Ghc b #

return :: a -> Ghc a #

fail :: String -> Ghc a #

Functor Ghc 
Instance details

Defined in GhcMonad

Methods

fmap :: (a -> b) -> Ghc a -> Ghc b #

(<$) :: a -> Ghc b -> Ghc a #

MonadFix Ghc 
Instance details

Defined in GhcMonad

Methods

mfix :: (a -> Ghc a) -> Ghc a #

Applicative Ghc 
Instance details

Defined in GhcMonad

Methods

pure :: a -> Ghc a #

(<*>) :: Ghc (a -> b) -> Ghc a -> Ghc b #

liftA2 :: (a -> b -> c) -> Ghc a -> Ghc b -> Ghc c #

(*>) :: Ghc a -> Ghc b -> Ghc b #

(<*) :: Ghc a -> Ghc b -> Ghc a #

MonadIO Ghc 
Instance details

Defined in GhcMonad

Methods

liftIO :: IO a -> Ghc a #

GhcMonad Ghc 
Instance details

Defined in GhcMonad

HasDynFlags Ghc 
Instance details

Defined in GhcMonad

ExceptionMonad Ghc 
Instance details

Defined in GhcMonad

Methods

gcatch :: Exception e => Ghc a -> (e -> Ghc a) -> Ghc a #

gmask :: ((Ghc a -> Ghc a) -> Ghc b) -> Ghc b #

gbracket :: Ghc a -> (a -> Ghc b) -> (a -> Ghc c) -> Ghc c #

gfinally :: Ghc a -> Ghc b -> Ghc a #

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