pandoc-2.1.3: Conversion between markup formats

CopyrightCopyright (C) 2006-2018 John MacFarlane
LicenseGNU GPL, version 2 or above
MaintainerJohn MacFarlane <jgm@berkeley@edu>
Stabilityalpha
Portabilityportable
Safe HaskellNone
LanguageHaskell2010

Text.Pandoc.App

Description

Does a pandoc conversion based on command-line options.

Synopsis

Documentation

data Opt Source #

Data structure for command line options.

Constructors

Opt 

Fields

Instances

Show Opt Source # 

Methods

showsPrec :: Int -> Opt -> ShowS #

show :: Opt -> String #

showList :: [Opt] -> ShowS #

Generic Opt Source # 

Associated Types

type Rep Opt :: * -> * #

Methods

from :: Opt -> Rep Opt x #

to :: Rep Opt x -> Opt #

ToJSON Opt Source # 
FromJSON Opt Source # 
type Rep Opt Source # 
type Rep Opt = D1 * (MetaData "Opt" "Text.Pandoc.App" "pandoc-2.1.3-AJQxWF0nMHfFfnslctfZaj" False) (C1 * (MetaCons "Opt" PrefixI True) ((:*:) * ((:*:) * ((:*:) * ((:*:) * ((:*:) * ((:*:) * (S1 * (MetaSel (Just Symbol "optTabStop") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * Int)) (S1 * (MetaSel (Just Symbol "optPreserveTabs") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * Bool))) ((:*:) * (S1 * (MetaSel (Just Symbol "optStandalone") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * Bool)) (S1 * (MetaSel (Just Symbol "optReader") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * (Maybe String))))) ((:*:) * ((:*:) * (S1 * (MetaSel (Just Symbol "optWriter") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * (Maybe String))) (S1 * (MetaSel (Just Symbol "optTableOfContents") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * Bool))) ((:*:) * (S1 * (MetaSel (Just Symbol "optBaseHeaderLevel") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * Int)) (S1 * (MetaSel (Just Symbol "optTemplate") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * (Maybe FilePath)))))) ((:*:) * ((:*:) * ((:*:) * (S1 * (MetaSel (Just Symbol "optVariables") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * [(String, String)])) (S1 * (MetaSel (Just Symbol "optMetadata") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * [(String, String)]))) ((:*:) * (S1 * (MetaSel (Just Symbol "optOutputFile") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * (Maybe FilePath))) (S1 * (MetaSel (Just Symbol "optInputFiles") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * [FilePath])))) ((:*:) * ((:*:) * (S1 * (MetaSel (Just Symbol "optNumberSections") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * Bool)) (S1 * (MetaSel (Just Symbol "optNumberOffset") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * [Int]))) ((:*:) * (S1 * (MetaSel (Just Symbol "optSectionDivs") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * Bool)) (S1 * (MetaSel (Just Symbol "optIncremental") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * Bool)))))) ((:*:) * ((:*:) * ((:*:) * ((:*:) * (S1 * (MetaSel (Just Symbol "optSelfContained") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * Bool)) (S1 * (MetaSel (Just Symbol "optHtmlQTags") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * Bool))) ((:*:) * (S1 * (MetaSel (Just Symbol "optHighlightStyle") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * (Maybe String))) (S1 * (MetaSel (Just Symbol "optSyntaxDefinitions") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * [FilePath])))) ((:*:) * ((:*:) * (S1 * (MetaSel (Just Symbol "optTopLevelDivision") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * TopLevelDivision)) (S1 * (MetaSel (Just Symbol "optHTMLMathMethod") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * HTMLMathMethod))) ((:*:) * (S1 * (MetaSel (Just Symbol "optAbbreviations") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * (Maybe FilePath))) (S1 * (MetaSel (Just Symbol "optReferenceDoc") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * (Maybe FilePath)))))) ((:*:) * ((:*:) * ((:*:) * (S1 * (MetaSel (Just Symbol "optEpubSubdirectory") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * String)) (S1 * (MetaSel (Just Symbol "optEpubMetadata") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * (Maybe FilePath)))) ((:*:) * (S1 * (MetaSel (Just Symbol "optEpubFonts") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * [FilePath])) (S1 * (MetaSel (Just Symbol "optEpubChapterLevel") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * Int)))) ((:*:) * ((:*:) * (S1 * (MetaSel (Just Symbol "optEpubCoverImage") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * (Maybe FilePath))) (S1 * (MetaSel (Just Symbol "optTOCDepth") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * Int))) ((:*:) * (S1 * (MetaSel (Just Symbol "optDumpArgs") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * Bool)) ((:*:) * (S1 * (MetaSel (Just Symbol "optIgnoreArgs") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * Bool)) (S1 * (MetaSel (Just Symbol "optVerbosity") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * Verbosity)))))))) ((:*:) * ((:*:) * ((:*:) * ((:*:) * ((:*:) * (S1 * (MetaSel (Just Symbol "optTrace") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * Bool)) (S1 * (MetaSel (Just Symbol "optLogFile") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * (Maybe FilePath)))) ((:*:) * (S1 * (MetaSel (Just Symbol "optFailIfWarnings") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * Bool)) (S1 * (MetaSel (Just Symbol "optReferenceLinks") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * Bool)))) ((:*:) * ((:*:) * (S1 * (MetaSel (Just Symbol "optReferenceLocation") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * ReferenceLocation)) (S1 * (MetaSel (Just Symbol "optDpi") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * Int))) ((:*:) * (S1 * (MetaSel (Just Symbol "optWrapText") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * WrapOption)) (S1 * (MetaSel (Just Symbol "optColumns") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * Int))))) ((:*:) * ((:*:) * ((:*:) * (S1 * (MetaSel (Just Symbol "optFilters") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * [Filter])) (S1 * (MetaSel (Just Symbol "optEmailObfuscation") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * ObfuscationMethod))) ((:*:) * (S1 * (MetaSel (Just Symbol "optIdentifierPrefix") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * String)) (S1 * (MetaSel (Just Symbol "optStripEmptyParagraphs") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * Bool)))) ((:*:) * ((:*:) * (S1 * (MetaSel (Just Symbol "optIndentedCodeClasses") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * [String])) (S1 * (MetaSel (Just Symbol "optDataDir") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * (Maybe FilePath)))) ((:*:) * (S1 * (MetaSel (Just Symbol "optCiteMethod") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * CiteMethod)) ((:*:) * (S1 * (MetaSel (Just Symbol "optListings") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * Bool)) (S1 * (MetaSel (Just Symbol "optPdfEngine") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * (Maybe String)))))))) ((:*:) * ((:*:) * ((:*:) * ((:*:) * (S1 * (MetaSel (Just Symbol "optPdfEngineArgs") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * [String])) (S1 * (MetaSel (Just Symbol "optSlideLevel") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * (Maybe Int)))) ((:*:) * (S1 * (MetaSel (Just Symbol "optSetextHeaders") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * Bool)) (S1 * (MetaSel (Just Symbol "optAscii") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * Bool)))) ((:*:) * ((:*:) * (S1 * (MetaSel (Just Symbol "optDefaultImageExtension") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * String)) (S1 * (MetaSel (Just Symbol "optExtractMedia") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * (Maybe FilePath)))) ((:*:) * (S1 * (MetaSel (Just Symbol "optTrackChanges") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * TrackChanges)) (S1 * (MetaSel (Just Symbol "optFileScope") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * Bool))))) ((:*:) * ((:*:) * ((:*:) * (S1 * (MetaSel (Just Symbol "optTitlePrefix") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * (Maybe String))) (S1 * (MetaSel (Just Symbol "optCss") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * [FilePath]))) ((:*:) * (S1 * (MetaSel (Just Symbol "optIncludeBeforeBody") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * [FilePath])) (S1 * (MetaSel (Just Symbol "optIncludeAfterBody") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * [FilePath])))) ((:*:) * ((:*:) * (S1 * (MetaSel (Just Symbol "optIncludeInHeader") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * [FilePath])) (S1 * (MetaSel (Just Symbol "optResourcePath") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * [FilePath]))) ((:*:) * (S1 * (MetaSel (Just Symbol "optRequestHeaders") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * [(String, String)])) ((:*:) * (S1 * (MetaSel (Just Symbol "optEol") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * LineEnding)) (S1 * (MetaSel (Just Symbol "optStripComments") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * Bool))))))))))

data LineEnding Source #

Constructors

LF 
CRLF 
Native 

Instances

defaultOpts :: Opt Source #

Defaults for command-line options.

options :: [OptDescr (Opt -> IO Opt)] Source #

A list of functions, each transforming the options data structure in response to a command-line option.