dhall-docs-0.0.1: Generate HTML docs from a dhall package

Safe HaskellNone
LanguageHaskell2010

Dhall.Docs.Core

Description

Contains all the functions that generate documentation

We should always try to do as little work as possible in an IO context. To do so, just wrap your function in IO if you need to do I/O operations, and make pure functions receive that IO result as an input

Synopsis

Documentation

generateDocs Source #

Arguments

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

generateDocsPure Source #

Arguments

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

Constructors

GeneratedDocs [DocsGenWarning] a 
Instances
Monad GeneratedDocs Source # 
Instance details

Defined in Dhall.Docs.Core

Functor GeneratedDocs Source # 
Instance details

Defined in Dhall.Docs.Core

Methods

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

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

Applicative GeneratedDocs Source # 
Instance details

Defined in Dhall.Docs.Core