-- Hoogle documentation, generated by Haddock
-- See Hoogle, http://www.haskell.org/hoogle/
-- | Generate HTML docs from a dhall package
--
-- Use this package if you want to create HTML documentation from your
-- dhall packages:
--
--
-- - See the Dhall.Docs module if you want to use this package
-- as a library
-- - Use the dhall-docs program from this package if you want
-- an executable
--
--
-- The Dhall.Docs module also contains instructions for how to use
-- this package
@package dhall-docs
@version 0.0.1
-- | 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
module Dhall.Docs.Core
-- | Generate all of the docs for a package. This function does all the `IO
-- ()` related tasks to call generateDocsPure
generateDocs :: Path Abs Dir -> Path Abs Dir -> Text -> IO ()
-- | 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
generateDocsPure :: Text -> [(Path Rel File, Text)] -> GeneratedDocs [(Path Rel File, Text)]
-- | The result of the doc-generator pure component
data GeneratedDocs a
GeneratedDocs :: [DocsGenWarning] -> a -> GeneratedDocs a
instance GHC.Base.Functor Dhall.Docs.Core.GeneratedDocs
instance GHC.Base.Applicative Dhall.Docs.Core.GeneratedDocs
instance GHC.Base.Monad Dhall.Docs.Core.GeneratedDocs
instance Control.Monad.Writer.Class.MonadWriter [Dhall.Docs.Core.DocsGenWarning] Dhall.Docs.Core.GeneratedDocs
instance GHC.Show.Show Dhall.Docs.Core.DocsGenWarning
-- | This module contains the top level and options parsing of the
-- dhall-docs executable
module Dhall.Docs
-- | Command line options
data Options
Options :: FilePath -> FilePath -> (Path Abs Dir -> Text) -> Options
-- | Directory where your package resides
[packageDir] :: Options -> FilePath
-- | Link to the generated documentation
[docLink] :: Options -> FilePath
[resolvePackageName] :: Options -> Path Abs Dir -> Text
Version :: Options
-- | ParserInfo for the Options type
parserInfoOptions :: ParserInfo Options
-- | Parser for the Options type
parseOptions :: Parser Options
-- | Entry point for the dhall-docs executable
main :: IO ()
-- | Default execution of dhall-docs command
defaultMain :: Options -> IO ()