-- 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 1.0.2
-- | 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 -> CharacterSet -> 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 -> CharacterSet -> [(Path Rel File, ByteString)] -> GeneratedDocs [(Path Rel File, Text)]
-- | The result of the doc-generator pure component
data GeneratedDocs a
GeneratedDocs :: [DocsGenWarning] -> a -> GeneratedDocs a
-- | Parse all comments in a text fragment
parseComments :: String -> Text -> [DhallComment 'RawComment]
data CommentParseError
MissingNewlineOnBlockComment :: CommentParseError
BadSingleLineCommentsAlignment :: CommentParseError
BadPrefixesOnSingleLineComments :: CommentParseError
SeveralSubseqDhallDocsComments :: CommentParseError
-- | Extracted text from a valid dhall-docs comment
data DhallDocsText
-- | Returns Nothing when DhallDocsComment was parsed or no
-- error was detected
parseSingleDhallDocsComment :: String -> Text -> Maybe (Either [CommentParseError] DhallDocsText)
unDhallDocsText :: DhallDocsText -> Text
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) -> CharacterSet -> Options
-- | Directory where your package resides
[packageDir] :: Options -> FilePath
-- | Link to the generated documentation
[docLink] :: Options -> FilePath
[resolvePackageName] :: Options -> Path Abs Dir -> Text
[characterSet] :: Options -> CharacterSet
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 ()