Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- generateDocs :: Path Abs Dir -> Path Abs Dir -> Text -> IO ()
- generateDocsPure :: Text -> [(Path Rel File, Text)] -> GeneratedDocs [(Path Rel File, Text)]
- data GeneratedDocs a = GeneratedDocs [DocsGenWarning] a
Documentation
:: Path Abs Dir | Input directory |
-> Path Abs Dir | Link to be created to the generated documentation |
-> Text | Package name, used in some HTML titles |
-> IO () |
Generate all of the docs for a package. This function does all the `IO ()`
related tasks to call generateDocsPure
:: Text | Package name |
-> [(Path Rel File, Text)] | (Input file, contents) |
-> GeneratedDocs [(Path Rel File, Text)] |
Generates all the documentation of dhall package in a pure way i.e.
without an IO
context. This let you generate documentation from a list of
dhall-files without saving them to the filesystem.
If you want the IO
version of this function, check generateDocs
data GeneratedDocs a Source #
The result of the doc-generator pure component
GeneratedDocs [DocsGenWarning] a |
Instances
Monad GeneratedDocs Source # | |
Defined in Dhall.Docs.Core (>>=) :: GeneratedDocs a -> (a -> GeneratedDocs b) -> GeneratedDocs b # (>>) :: GeneratedDocs a -> GeneratedDocs b -> GeneratedDocs b # return :: a -> GeneratedDocs a # fail :: String -> GeneratedDocs a # | |
Functor GeneratedDocs Source # | |
Defined in Dhall.Docs.Core fmap :: (a -> b) -> GeneratedDocs a -> GeneratedDocs b # (<$) :: a -> GeneratedDocs b -> GeneratedDocs a # | |
Applicative GeneratedDocs Source # | |
Defined in Dhall.Docs.Core pure :: a -> GeneratedDocs a # (<*>) :: GeneratedDocs (a -> b) -> GeneratedDocs a -> GeneratedDocs b # liftA2 :: (a -> b -> c) -> GeneratedDocs a -> GeneratedDocs b -> GeneratedDocs c # (*>) :: GeneratedDocs a -> GeneratedDocs b -> GeneratedDocs b # (<*) :: GeneratedDocs a -> GeneratedDocs b -> GeneratedDocs a # |