Skip to content
This repository has been archived by the owner on Sep 28, 2023. It is now read-only.

Commit

Permalink
Documentation for Parser module configuration.
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel-Diaz committed May 14, 2016
1 parent 0d4161f commit 36c18c9
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion Text/LaTeX/Base/Parser.hs
Original file line number Diff line number Diff line change
Expand Up @@ -65,15 +65,25 @@ import Text.LaTeX.Base.Render
-- Parser configuration
------------------------------------------------------------------------

-- | Configuration for the LaTeX parser.
data ParserConf = ParserConf
{ verbatimEnvironments :: [String]
{ -- | This is the list of names of the environments such that
-- their content will be parsed verbatim.
verbatimEnvironments :: [String]
}

-- | Default parser configuration, used by 'parseLaTeX' and 'parseLaTeXFile'.
--
-- Defaults:
--
-- > verbatimEnvironments = ["verbatim"]
--
defaultParserConf :: ParserConf
defaultParserConf = ParserConf
{ verbatimEnvironments = ["verbatim"]
}

-- | Parser with 'Text' input and 'ParserConf' environment.
type Parser = Parsec Text ParserConf

------------------------------------------------------------------------
Expand Down

0 comments on commit 36c18c9

Please sign in to comment.