| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Network.Gitit.Interface
Description
Interface for plugins.
A plugin is a Haskell module that is dynamically loaded by gitit.
There are three kinds of plugins: PageTransforms,
PreParseTransforms, and PreCommitTransforms. These plugins differ
chiefly in where they are applied. PreCommitTransform plugins are
applied just before changes to a page are saved and may transform
the raw source that is saved. PreParseTransform plugins are applied
when a page is viewed and may alter the raw page source before it
is parsed as a Pandoc document. Finally, PageTransform plugins
modify the Pandoc document that results after a page's source is
parsed, but before it is converted to HTML:
+--------------------------+
| edited text from browser |
+--------------------------+
|| <---- PreCommitTransform plugins
\/
|| <---- saved to repository
\/
+---------------------------------+
| raw page source from repository |
+---------------------------------+
|| <---- PreParseTransform plugins
\/
|| <---- markdown or RST reader
\/
+-----------------+
| Pandoc document |
+-----------------+
|| <---- PageTransform plugins
\/
+---------------------+
| new Pandoc document |
+---------------------+
|| <---- HTML writer
\/
+----------------------+
| HTML version of page |
+----------------------+Note that PreParseTransform and PageTransform plugins do not alter
the page source stored in the repository. They only affect what is
visible on the website. Only PreCommitTransform plugins can
alter what is stored in the repository.
Note also that PreParseTransform and PageTransform plugins will
not be run when the cached version of a page is used. Plugins can
use the doNotCache command to prevent a page from being cached,
if their behavior is sensitive to things that might change from
one time to another (such as the time or currently logged-in user).
You can use the helper functions mkPageTransform and mkPageTransformM
to create PageTransform plugins from a transformation of any
of the basic types used by Pandoc (for example, Inline, Block,
[Inline], even String). Here is a simple (if silly) example:
-- Deprofanizer.hs module Deprofanizer (plugin) where -- This plugin replaces profane words with "XXXXX". import Network.Gitit.Interface import Data.Char (toLower) plugin :: Plugin plugin = mkPageTransform deprofanize deprofanize :: Inline -> Inline deprofanize (Str x) | isBadWord x = Str "XXXXX" deprofanize x = x isBadWord :: String -> Bool isBadWord x = (map toLower x) `elem` ["darn", "blasted", "stinker"] -- there are more, but this is a family program
Further examples can be found in the plugins directory in
the source distribution. If you have installed gitit using Cabal,
you can also find them in the directory
CABALDIR/share/gitit-X.Y.Z/plugins, where CABALDIR is the cabal
install directory and X.Y.Z is the version number of gitit.
Synopsis
- data Plugin
- = PageTransform (Pandoc -> PluginM Pandoc)
- | PreParseTransform (String -> PluginM String)
- | PreCommitTransform (String -> PluginM String)
- type PluginM = ReaderT PluginData (StateT Context IO)
- mkPageTransform :: Data a => (a -> a) -> Plugin
- mkPageTransformM :: Data a => (a -> PluginM a) -> Plugin
- data Config = Config {
- repositoryPath :: FilePath
- repositoryType :: FileStoreType
- defaultPageType :: PageType
- defaultExtension :: String
- mathMethod :: MathMethod
- defaultLHS :: Bool
- showLHSBirdTracks :: Bool
- withUser :: Handler -> Handler
- requireAuthentication :: AuthenticationLevel
- authHandler :: Handler
- userFile :: FilePath
- sessionTimeout :: Int
- templatesDir :: FilePath
- logFile :: FilePath
- logLevel :: Priority
- staticDir :: FilePath
- pluginModules :: [String]
- tableOfContents :: Bool
- maxUploadSize :: Integer
- maxPageSize :: Integer
- address :: String
- portNumber :: Int
- debugMode :: Bool
- frontPage :: String
- noEdit :: [String]
- noDelete :: [String]
- defaultSummary :: String
- deleteSummary :: String
- accessQuestion :: Maybe (String, [String])
- disableRegistration :: Bool
- useRecaptcha :: Bool
- recaptchaPublicKey :: String
- recaptchaPrivateKey :: String
- rpxDomain :: String
- rpxKey :: String
- compressResponses :: Bool
- useCache :: Bool
- cacheDir :: FilePath
- mimeMap :: Map String String
- mailCommand :: String
- resetPasswordMessage :: String
- markupHelp :: Text
- useFeed :: Bool
- baseUrl :: String
- useAbsoluteUrls :: Bool
- wikiTitle :: String
- feedDays :: Integer
- feedRefreshTime :: Integer
- pandocUserData :: Maybe FilePath
- xssSanitize :: Bool
- recentActivityDays :: Int
- githubAuth :: GithubConfig
- data Request = Request {}
- data User = User {}
- data Context = Context {
- ctxFile :: String
- ctxLayout :: PageLayout
- ctxCacheable :: Bool
- ctxTOC :: Bool
- ctxBirdTracks :: Bool
- ctxCategories :: [String]
- ctxMeta :: [(String, String)]
- data PageType
- data PageLayout = PageLayout {
- pgPageName :: String
- pgRevision :: Maybe String
- pgPrintable :: Bool
- pgMessages :: [String]
- pgTitle :: String
- pgScripts :: [String]
- pgShowPageTools :: Bool
- pgShowSiteNav :: Bool
- pgMarkupHelp :: Maybe Text
- pgTabs :: [Tab]
- pgSelectedTab :: Tab
- pgLinkToFeed :: Bool
- askConfig :: PluginM Config
- askUser :: PluginM (Maybe User)
- askRequest :: PluginM Request
- askFileStore :: PluginM FileStore
- askMeta :: PluginM [(String, String)]
- doNotCache :: PluginM ()
- getContext :: HasContext m => m Context
- modifyContext :: HasContext m => (Context -> Context) -> m ()
- inlinesToURL :: [Inline] -> String
- inlinesToString :: [Inline] -> String
- liftIO :: MonadIO m => IO a -> m a
- withTempDir :: FilePath -> (FilePath -> IO a) -> IO a
- data Block
- = Plain [Inline]
- | Para [Inline]
- | LineBlock [[Inline]]
- | CodeBlock Attr Text
- | RawBlock Format Text
- | BlockQuote [Block]
- | OrderedList ListAttributes [[Block]]
- | BulletList [[Block]]
- | DefinitionList [([Inline], [[Block]])]
- | Header Int Attr [Inline]
- | HorizontalRule
- | Table Attr Caption [ColSpec] TableHead [TableBody] TableFoot
- | Figure Attr Caption [Block]
- | Div Attr [Block]
- data Inline
- = Str Text
- | Emph [Inline]
- | Underline [Inline]
- | Strong [Inline]
- | Strikeout [Inline]
- | Superscript [Inline]
- | Subscript [Inline]
- | SmallCaps [Inline]
- | Quoted QuoteType [Inline]
- | Cite [Citation] [Inline]
- | Code Attr Text
- | Space
- | SoftBreak
- | LineBreak
- | Math MathType Text
- | RawInline Format Text
- | Link Attr [Inline] Target
- | Image Attr [Inline] Target
- | Note [Block]
- | Span Attr [Inline]
- newtype Format = Format Text
- newtype Meta = Meta {}
- data Alignment
- type Attr = (Text, [Text], [(Text, Text)])
- type Target = (Text, Text)
- type ColSpec = (Alignment, ColWidth)
- data Cell = Cell Attr Alignment RowSpan ColSpan [Block]
- data Row = Row Attr [Cell]
- data TableFoot = TableFoot Attr [Row]
- data TableBody = TableBody Attr RowHeadColumns [Row] [Row]
- data TableHead = TableHead Attr [Row]
- data Pandoc = Pandoc Meta [Block]
- pattern SimpleFigure :: Attr -> [Inline] -> Target -> Block
- docAuthors :: Meta -> [[Inline]]
- docDate :: Meta -> [Inline]
- docTitle :: Meta -> [Inline]
- isNullMeta :: Meta -> Bool
- lookupMeta :: Text -> Meta -> Maybe MetaValue
- nullAttr :: Attr
- nullMeta :: Meta
- pandocTypesVersion :: Version
- data Caption = Caption (Maybe ShortCaption) [Block]
- data Citation = Citation {
- citationId :: Text
- citationPrefix :: [Inline]
- citationSuffix :: [Inline]
- citationMode :: CitationMode
- citationNoteNum :: Int
- citationHash :: Int
- data CitationMode
- newtype ColSpan = ColSpan Int
- data ColWidth
- type ListAttributes = (Int, ListNumberStyle, ListNumberDelim)
- data ListNumberDelim
- data ListNumberStyle
- data MathType
- data MetaValue
- = MetaMap (Map Text MetaValue)
- | MetaList [MetaValue]
- | MetaBool Bool
- | MetaString Text
- | MetaInlines [Inline]
- | MetaBlocks [Block]
- data QuoteType
- newtype RowHeadColumns = RowHeadColumns Int
- newtype RowSpan = RowSpan Int
- type ShortCaption = [Inline]
- bottomUp :: (Data a, Data b) => (a -> a) -> b -> b
- bottomUpM :: (Monad m, Data a, Data b) => (a -> m a) -> b -> m b
- queryWith :: (Data a, Monoid b, Data c) => (a -> b) -> c -> b
- topDown :: (Data a, Data b) => (a -> a) -> b -> b
Documentation
Constructors
| PageTransform (Pandoc -> PluginM Pandoc) | |
| PreParseTransform (String -> PluginM String) | |
| PreCommitTransform (String -> PluginM String) |
mkPageTransform :: Data a => (a -> a) -> Plugin Source #
Lifts a function from a -> a (for example, Inline -> Inline,
Block -> Block, [Inline] -> [Inline], or String -> String)
to a PageTransform plugin.
mkPageTransformM :: Data a => (a -> PluginM a) -> Plugin Source #
Monadic version of mkPageTransform.
Lifts a function from a -> m a to a PageTransform plugin.
Data structure for information read from config file.
Constructors
| Config | |
Fields
| |
Constructors
| Request | |
Instances
| Show Request | |
| HasHeaders Request | |
Defined in Happstack.Server.Internal.Types | |
Constructors
| Context | |
Fields
| |
Instances
| HasContext ContentTransformer Source # | |
Defined in Network.Gitit.Types Methods getContext :: ContentTransformer Context Source # modifyContext :: (Context -> Context) -> ContentTransformer () Source # | |
| HasContext PluginM Source # | |
Defined in Network.Gitit.Types | |
data PageLayout Source #
Abstract representation of page layout (tabs, scripts, etc.)
Constructors
| PageLayout | |
Fields
| |
askUser :: PluginM (Maybe User) Source #
Returns Just the logged in user, or Nothing if nobody is logged in.
askRequest :: PluginM Request Source #
Returns the complete HTTP request.
askFileStore :: PluginM FileStore Source #
Returns the wiki filestore.
doNotCache :: PluginM () Source #
Indicates that the current page or file is not to be cached.
getContext :: HasContext m => m Context Source #
modifyContext :: HasContext m => (Context -> Context) -> m () Source #
inlinesToURL :: [Inline] -> String Source #
Derives a URL from a list of Pandoc Inline elements.
inlinesToString :: [Inline] -> String Source #
Convert a list of inlines into a string.
liftIO :: MonadIO m => IO a -> m a Source #
Lift a computation from the IO monad.
This allows us to run IO computations in any monadic stack, so long as it supports these kinds of operations
(i.e. IO is the base monad for the stack).
Example
import Control.Monad.Trans.State -- from the "transformers" library printState :: Show s => StateT s IO () printState = do state <- get liftIO $ print state
Had we omitted , we would have ended up with this error:liftIO
• Couldn't match type ‘IO’ with ‘StateT s IO’ Expected type: StateT s IO () Actual type: IO ()
The important part here is the mismatch between StateT s IO () and .IO ()
Luckily, we know of a function that takes an and returns an IO a(m a): ,
enabling us to run the program and see the expected results:liftIO
> evalStateT printState "hello" "hello" > evalStateT printState 3 3
withTempDir :: FilePath -> (FilePath -> IO a) -> IO a Source #
Perform a function in a temporary directory and clean up.
Constructors
| Plain [Inline] | |
| Para [Inline] | |
| LineBlock [[Inline]] | |
| CodeBlock Attr Text | |
| RawBlock Format Text | |
| BlockQuote [Block] | |
| OrderedList ListAttributes [[Block]] | |
| BulletList [[Block]] | |
| DefinitionList [([Inline], [[Block]])] | |
| Header Int Attr [Inline] | |
| HorizontalRule | |
| Table Attr Caption [ColSpec] TableHead [TableBody] TableFoot | |
| Figure Attr Caption [Block] | |
| Div Attr [Block] |
Instances
Constructors
| Str Text | |
| Emph [Inline] | |
| Underline [Inline] | |
| Strong [Inline] | |
| Strikeout [Inline] | |
| Superscript [Inline] | |
| Subscript [Inline] | |
| SmallCaps [Inline] | |
| Quoted QuoteType [Inline] | |
| Cite [Citation] [Inline] | |
| Code Attr Text | |
| Space | |
| SoftBreak | |
| LineBreak | |
| Math MathType Text | |
| RawInline Format Text | |
| Link Attr [Inline] Target | |
| Image Attr [Inline] Target | |
| Note [Block] | |
| Span Attr [Inline] |
Instances
| FromJSON Inline | |||||
| ToJSON Inline | |||||
| CiteprocOutput Inlines | |||||
Defined in Citeproc.Pandoc Methods dropTextWhile :: (Char -> Bool) -> Inlines -> Inlines dropTextWhileEnd :: (Char -> Bool) -> Inlines -> Inlines addFontVariant :: FontVariant -> Inlines -> Inlines addFontStyle :: FontStyle -> Inlines -> Inlines addFontWeight :: FontWeight -> Inlines -> Inlines addTextDecoration :: TextDecoration -> Inlines -> Inlines addVerticalAlign :: VerticalAlign -> Inlines -> Inlines addTextCase :: Maybe Lang -> TextCase -> Inlines -> Inlines addDisplay :: DisplayStyle -> Inlines -> Inlines addQuotes :: Inlines -> Inlines movePunctuationInsideQuotes :: Inlines -> Inlines inNote :: Inlines -> Inlines mapText :: (Text -> Text) -> Inlines -> Inlines addHyperlink :: Text -> Inlines -> Inlines localizeQuotes :: Locale -> Inlines -> Inlines | |||||
| NFData Inline | |||||
Defined in Text.Pandoc.Definition | |||||
| Monoid Inlines | |||||
| Semigroup Inlines | |||||
| Data Inline | |||||
Defined in Text.Pandoc.Definition Methods gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> Inline -> c Inline Source # gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c Inline Source # toConstr :: Inline -> Constr Source # dataTypeOf :: Inline -> DataType Source # dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c Inline) Source # dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c Inline) Source # gmapT :: (forall b. Data b => b -> b) -> Inline -> Inline Source # gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> Inline -> r Source # gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> Inline -> r Source # gmapQ :: (forall d. Data d => d -> u) -> Inline -> [u] Source # gmapQi :: Int -> (forall d. Data d => d -> u) -> Inline -> u Source # gmapM :: Monad m => (forall d. Data d => d -> m d) -> Inline -> m Inline Source # gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> Inline -> m Inline Source # gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> Inline -> m Inline Source # | |||||
| IsString Inlines | |||||
Defined in Text.Pandoc.Builder Methods fromString :: String -> Inlines Source # | |||||
| Generic Inline | |||||
Defined in Text.Pandoc.Definition Associated Types
| |||||
| Read Inline | |||||
| Show Inline | |||||
| Eq Inline | |||||
| Ord Inline | |||||
| ToMetaValue Inlines | |||||
Defined in Text.Pandoc.Builder Methods toMetaValue :: Inlines -> MetaValue | |||||
| Walkable Block Inline | |||||
| Walkable Inline Chunk | |||||
| Walkable Inline ChunkedDoc | |||||
Defined in Text.Pandoc.Chunks Methods walk :: (Inline -> Inline) -> ChunkedDoc -> ChunkedDoc walkM :: (Monad m, Applicative m, Functor m) => (Inline -> m Inline) -> ChunkedDoc -> m ChunkedDoc query :: Monoid c => (Inline -> c) -> ChunkedDoc -> c | |||||
| Walkable Inline SecInfo | |||||
| Walkable Inline Block | |||||
| Walkable Inline Caption | |||||
| Walkable Inline Cell | |||||
| Walkable Inline Citation | |||||
| Walkable Inline Inline | |||||
| Walkable Inline Meta | |||||
| Walkable Inline MetaValue | |||||
| Walkable Inline Pandoc | |||||
| Walkable Inline Row | |||||
| Walkable Inline TableBody | |||||
| Walkable Inline TableFoot | |||||
| Walkable Inline TableHead | |||||
| Walkable [Block] Inline | |||||
| Walkable [Inline] Block | |||||
| Walkable [Inline] Caption | |||||
| Walkable [Inline] Cell | |||||
| Walkable [Inline] Citation | |||||
| Walkable [Inline] Inline | |||||
| Walkable [Inline] Meta | |||||
| Walkable [Inline] MetaValue | |||||
| Walkable [Inline] Pandoc | |||||
| Walkable [Inline] Row | |||||
| Walkable [Inline] TableBody | |||||
| Walkable [Inline] TableFoot | |||||
| Walkable [Inline] TableHead | |||||
| Walkable [Inline] [Inline] | |||||
| type Rep Inline | |||||
Defined in Text.Pandoc.Definition type Rep Inline = D1 ('MetaData "Inline" "Text.Pandoc.Definition" "pandoc-types-1.23.1.1-7EsQOX1JvASJuDrNxfLPBC" 'False) ((((C1 ('MetaCons "Str" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)) :+: C1 ('MetaCons "Emph" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 [Inline]))) :+: (C1 ('MetaCons "Underline" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 [Inline])) :+: (C1 ('MetaCons "Strong" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 [Inline])) :+: C1 ('MetaCons "Strikeout" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 [Inline]))))) :+: ((C1 ('MetaCons "Superscript" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 [Inline])) :+: C1 ('MetaCons "Subscript" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 [Inline]))) :+: (C1 ('MetaCons "SmallCaps" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 [Inline])) :+: (C1 ('MetaCons "Quoted" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 QuoteType) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 [Inline])) :+: C1 ('MetaCons "Cite" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 [Citation]) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 [Inline])))))) :+: (((C1 ('MetaCons "Code" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Attr) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)) :+: C1 ('MetaCons "Space" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "SoftBreak" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "LineBreak" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "Math" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 MathType) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text))))) :+: ((C1 ('MetaCons "RawInline" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Format) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)) :+: C1 ('MetaCons "Link" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Attr) :*: (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 [Inline]) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Target)))) :+: (C1 ('MetaCons "Image" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Attr) :*: (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 [Inline]) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Target))) :+: (C1 ('MetaCons "Note" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 [Block])) :+: C1 ('MetaCons "Span" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Attr) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 [Inline]))))))) | |||||
Instances
| FromJSON Format | |||||
| ToJSON Format | |||||
| NFData Format | |||||
Defined in Text.Pandoc.Definition | |||||
| Data Format | |||||
Defined in Text.Pandoc.Definition Methods gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> Format -> c Format Source # gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c Format Source # toConstr :: Format -> Constr Source # dataTypeOf :: Format -> DataType Source # dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c Format) Source # dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c Format) Source # gmapT :: (forall b. Data b => b -> b) -> Format -> Format Source # gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> Format -> r Source # gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> Format -> r Source # gmapQ :: (forall d. Data d => d -> u) -> Format -> [u] Source # gmapQi :: Int -> (forall d. Data d => d -> u) -> Format -> u Source # gmapM :: Monad m => (forall d. Data d => d -> m d) -> Format -> m Format Source # gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> Format -> m Format Source # gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> Format -> m Format Source # | |||||
| IsString Format | |||||
Defined in Text.Pandoc.Definition Methods fromString :: String -> Format Source # | |||||
| Generic Format | |||||
Defined in Text.Pandoc.Definition Associated Types
| |||||
| Read Format | |||||
| Show Format | |||||
| Eq Format | |||||
| Ord Format | |||||
| (ToJSONFilter m a, MonadIO m) => ToJSONFilter m (Maybe Format -> a) | |||||
Defined in Text.Pandoc.JSON Methods toJSONFilter :: (Maybe Format -> a) -> m () | |||||
| type Rep Format | |||||
Defined in Text.Pandoc.Definition | |||||
Instances
| FromJSON Meta | |||||
| ToJSON Meta | |||||
| NFData Meta | |||||
Defined in Text.Pandoc.Definition | |||||
| Monoid Meta | |||||
| Semigroup Meta | |||||
| Data Meta | |||||
Defined in Text.Pandoc.Definition Methods gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> Meta -> c Meta Source # gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c Meta Source # toConstr :: Meta -> Constr Source # dataTypeOf :: Meta -> DataType Source # dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c Meta) Source # dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c Meta) Source # gmapT :: (forall b. Data b => b -> b) -> Meta -> Meta Source # gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> Meta -> r Source # gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> Meta -> r Source # gmapQ :: (forall d. Data d => d -> u) -> Meta -> [u] Source # gmapQi :: Int -> (forall d. Data d => d -> u) -> Meta -> u Source # gmapM :: Monad m => (forall d. Data d => d -> m d) -> Meta -> m Meta Source # gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> Meta -> m Meta Source # gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> Meta -> m Meta Source # | |||||
| Generic Meta | |||||
Defined in Text.Pandoc.Definition Associated Types
| |||||
| Read Meta | |||||
| Show Meta | |||||
| Eq Meta | |||||
| Ord Meta | |||||
Defined in Text.Pandoc.Definition | |||||
| HasMeta Meta | |||||
Defined in Text.Pandoc.Builder | |||||
| Walkable Block Meta | |||||
| Walkable Inline Meta | |||||
| Walkable Meta Meta | |||||
| Walkable Meta Pandoc | |||||
| Walkable MetaValue Meta | |||||
| Walkable [Block] Meta | |||||
| Walkable [Inline] Meta | |||||
| type Rep Meta | |||||
Defined in Text.Pandoc.Definition | |||||
Constructors
| AlignLeft | |
| AlignRight | |
| AlignCenter | |
| AlignDefault |
Instances
| FromJSON Alignment | |||||
| ToJSON Alignment | |||||
| NFData Alignment | |||||
Defined in Text.Pandoc.Definition | |||||
| Data Alignment | |||||
Defined in Text.Pandoc.Definition Methods gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> Alignment -> c Alignment Source # gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c Alignment Source # toConstr :: Alignment -> Constr Source # dataTypeOf :: Alignment -> DataType Source # dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c Alignment) Source # dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c Alignment) Source # gmapT :: (forall b. Data b => b -> b) -> Alignment -> Alignment Source # gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> Alignment -> r Source # gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> Alignment -> r Source # gmapQ :: (forall d. Data d => d -> u) -> Alignment -> [u] Source # gmapQi :: Int -> (forall d. Data d => d -> u) -> Alignment -> u Source # gmapM :: Monad m => (forall d. Data d => d -> m d) -> Alignment -> m Alignment Source # gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> Alignment -> m Alignment Source # gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> Alignment -> m Alignment Source # | |||||
| Generic Alignment | |||||
Defined in Text.Pandoc.Definition Associated Types
| |||||
| Read Alignment | |||||
| Show Alignment | |||||
| Eq Alignment | |||||
| Ord Alignment | |||||
Defined in Text.Pandoc.Definition | |||||
| type Rep Alignment | |||||
Defined in Text.Pandoc.Definition type Rep Alignment = D1 ('MetaData "Alignment" "Text.Pandoc.Definition" "pandoc-types-1.23.1.1-7EsQOX1JvASJuDrNxfLPBC" 'False) ((C1 ('MetaCons "AlignLeft" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "AlignRight" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "AlignCenter" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "AlignDefault" 'PrefixI 'False) (U1 :: Type -> Type))) | |||||
Instances
| FromJSON Cell | |||||
| ToJSON Cell | |||||
| NFData Cell | |||||
Defined in Text.Pandoc.Definition | |||||
| Data Cell | |||||
Defined in Text.Pandoc.Definition Methods gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> Cell -> c Cell Source # gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c Cell Source # toConstr :: Cell -> Constr Source # dataTypeOf :: Cell -> DataType Source # dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c Cell) Source # dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c Cell) Source # gmapT :: (forall b. Data b => b -> b) -> Cell -> Cell Source # gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> Cell -> r Source # gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> Cell -> r Source # gmapQ :: (forall d. Data d => d -> u) -> Cell -> [u] Source # gmapQi :: Int -> (forall d. Data d => d -> u) -> Cell -> u Source # gmapM :: Monad m => (forall d. Data d => d -> m d) -> Cell -> m Cell Source # gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> Cell -> m Cell Source # gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> Cell -> m Cell Source # | |||||
| Generic Cell | |||||
Defined in Text.Pandoc.Definition Associated Types
| |||||
| Read Cell | |||||
| Show Cell | |||||
| Eq Cell | |||||
| Ord Cell | |||||
Defined in Text.Pandoc.Definition | |||||
| Walkable Block Cell | |||||
| Walkable Inline Cell | |||||
| Walkable [Block] Cell | |||||
| Walkable [Inline] Cell | |||||
| type Rep Cell | |||||
Defined in Text.Pandoc.Definition type Rep Cell = D1 ('MetaData "Cell" "Text.Pandoc.Definition" "pandoc-types-1.23.1.1-7EsQOX1JvASJuDrNxfLPBC" 'False) (C1 ('MetaCons "Cell" 'PrefixI 'False) ((S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Attr) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Alignment)) :*: (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedUnpack) (Rec0 RowSpan) :*: (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedUnpack) (Rec0 ColSpan) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 [Block]))))) | |||||
Instances
| FromJSON Row | |||||
| ToJSON Row | |||||
| NFData Row | |||||
Defined in Text.Pandoc.Definition | |||||
| Data Row | |||||
Defined in Text.Pandoc.Definition Methods gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> Row -> c Row Source # gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c Row Source # toConstr :: Row -> Constr Source # dataTypeOf :: Row -> DataType Source # dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c Row) Source # dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c Row) Source # gmapT :: (forall b. Data b => b -> b) -> Row -> Row Source # gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> Row -> r Source # gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> Row -> r Source # gmapQ :: (forall d. Data d => d -> u) -> Row -> [u] Source # gmapQi :: Int -> (forall d. Data d => d -> u) -> Row -> u Source # gmapM :: Monad m => (forall d. Data d => d -> m d) -> Row -> m Row Source # gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> Row -> m Row Source # gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> Row -> m Row Source # | |||||
| Generic Row | |||||
Defined in Text.Pandoc.Definition Associated Types
| |||||
| Read Row | |||||
| Show Row | |||||
| Eq Row | |||||
| Ord Row | |||||
| Walkable Block Row | |||||
| Walkable Inline Row | |||||
| Walkable [Block] Row | |||||
| Walkable [Inline] Row | |||||
| type Rep Row | |||||
Defined in Text.Pandoc.Definition type Rep Row = D1 ('MetaData "Row" "Text.Pandoc.Definition" "pandoc-types-1.23.1.1-7EsQOX1JvASJuDrNxfLPBC" 'False) (C1 ('MetaCons "Row" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Attr) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 [Cell]))) | |||||
Instances
| FromJSON TableFoot | |||||
| ToJSON TableFoot | |||||
| NFData TableFoot | |||||
Defined in Text.Pandoc.Definition | |||||
| Data TableFoot | |||||
Defined in Text.Pandoc.Definition Methods gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> TableFoot -> c TableFoot Source # gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c TableFoot Source # toConstr :: TableFoot -> Constr Source # dataTypeOf :: TableFoot -> DataType Source # dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c TableFoot) Source # dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c TableFoot) Source # gmapT :: (forall b. Data b => b -> b) -> TableFoot -> TableFoot Source # gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> TableFoot -> r Source # gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> TableFoot -> r Source # gmapQ :: (forall d. Data d => d -> u) -> TableFoot -> [u] Source # gmapQi :: Int -> (forall d. Data d => d -> u) -> TableFoot -> u Source # gmapM :: Monad m => (forall d. Data d => d -> m d) -> TableFoot -> m TableFoot Source # gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> TableFoot -> m TableFoot Source # gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> TableFoot -> m TableFoot Source # | |||||
| Generic TableFoot | |||||
Defined in Text.Pandoc.Definition Associated Types
| |||||
| Read TableFoot | |||||
| Show TableFoot | |||||
| Eq TableFoot | |||||
| Ord TableFoot | |||||
Defined in Text.Pandoc.Definition | |||||
| Walkable Block TableFoot | |||||
| Walkable Inline TableFoot | |||||
| Walkable [Block] TableFoot | |||||
| Walkable [Inline] TableFoot | |||||
| type Rep TableFoot | |||||
Defined in Text.Pandoc.Definition type Rep TableFoot = D1 ('MetaData "TableFoot" "Text.Pandoc.Definition" "pandoc-types-1.23.1.1-7EsQOX1JvASJuDrNxfLPBC" 'False) (C1 ('MetaCons "TableFoot" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Attr) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 [Row]))) | |||||
Constructors
| TableBody Attr RowHeadColumns [Row] [Row] |
Instances
| FromJSON TableBody | |||||
| ToJSON TableBody | |||||
| NFData TableBody | |||||
Defined in Text.Pandoc.Definition | |||||
| Data TableBody | |||||
Defined in Text.Pandoc.Definition Methods gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> TableBody -> c TableBody Source # gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c TableBody Source # toConstr :: TableBody -> Constr Source # dataTypeOf :: TableBody -> DataType Source # dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c TableBody) Source # dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c TableBody) Source # gmapT :: (forall b. Data b => b -> b) -> TableBody -> TableBody Source # gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> TableBody -> r Source # gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> TableBody -> r Source # gmapQ :: (forall d. Data d => d -> u) -> TableBody -> [u] Source # gmapQi :: Int -> (forall d. Data d => d -> u) -> TableBody -> u Source # gmapM :: Monad m => (forall d. Data d => d -> m d) -> TableBody -> m TableBody Source # gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> TableBody -> m TableBody Source # gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> TableBody -> m TableBody Source # | |||||
| Generic TableBody | |||||
Defined in Text.Pandoc.Definition Associated Types
| |||||
| Read TableBody | |||||
| Show TableBody | |||||
| Eq TableBody | |||||
| Ord TableBody | |||||
Defined in Text.Pandoc.Definition | |||||
| Walkable Block TableBody | |||||
| Walkable Inline TableBody | |||||
| Walkable [Block] TableBody | |||||
| Walkable [Inline] TableBody | |||||
| type Rep TableBody | |||||
Defined in Text.Pandoc.Definition type Rep TableBody = D1 ('MetaData "TableBody" "Text.Pandoc.Definition" "pandoc-types-1.23.1.1-7EsQOX1JvASJuDrNxfLPBC" 'False) (C1 ('MetaCons "TableBody" 'PrefixI 'False) ((S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Attr) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedUnpack) (Rec0 RowHeadColumns)) :*: (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 [Row]) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 [Row])))) | |||||
Instances
| FromJSON TableHead | |||||
| ToJSON TableHead | |||||
| NFData TableHead | |||||
Defined in Text.Pandoc.Definition | |||||
| Data TableHead | |||||
Defined in Text.Pandoc.Definition Methods gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> TableHead -> c TableHead Source # gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c TableHead Source # toConstr :: TableHead -> Constr Source # dataTypeOf :: TableHead -> DataType Source # dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c TableHead) Source # dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c TableHead) Source # gmapT :: (forall b. Data b => b -> b) -> TableHead -> TableHead Source # gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> TableHead -> r Source # gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> TableHead -> r Source # gmapQ :: (forall d. Data d => d -> u) -> TableHead -> [u] Source # gmapQi :: Int -> (forall d. Data d => d -> u) -> TableHead -> u Source # gmapM :: Monad m => (forall d. Data d => d -> m d) -> TableHead -> m TableHead Source # gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> TableHead -> m TableHead Source # gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> TableHead -> m TableHead Source # | |||||
| Generic TableHead | |||||
Defined in Text.Pandoc.Definition Associated Types
| |||||
| Read TableHead | |||||
| Show TableHead | |||||
| Eq TableHead | |||||
| Ord TableHead | |||||
Defined in Text.Pandoc.Definition | |||||
| Walkable Block TableHead | |||||
| Walkable Inline TableHead | |||||
| Walkable [Block] TableHead | |||||
| Walkable [Inline] TableHead | |||||
| type Rep TableHead | |||||
Defined in Text.Pandoc.Definition type Rep TableHead = D1 ('MetaData "TableHead" "Text.Pandoc.Definition" "pandoc-types-1.23.1.1-7EsQOX1JvASJuDrNxfLPBC" 'False) (C1 ('MetaCons "TableHead" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Attr) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 [Row]))) | |||||
Instances
| FromJSON Pandoc | |||||
| ToJSON Pandoc | |||||
| NFData Pandoc | |||||
Defined in Text.Pandoc.Definition | |||||
| Monoid Pandoc | |||||
| Semigroup Pandoc | |||||
| Data Pandoc | |||||
Defined in Text.Pandoc.Definition Methods gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> Pandoc -> c Pandoc Source # gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c Pandoc Source # toConstr :: Pandoc -> Constr Source # dataTypeOf :: Pandoc -> DataType Source # dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c Pandoc) Source # dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c Pandoc) Source # gmapT :: (forall b. Data b => b -> b) -> Pandoc -> Pandoc Source # gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> Pandoc -> r Source # gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> Pandoc -> r Source # gmapQ :: (forall d. Data d => d -> u) -> Pandoc -> [u] Source # gmapQi :: Int -> (forall d. Data d => d -> u) -> Pandoc -> u Source # gmapM :: Monad m => (forall d. Data d => d -> m d) -> Pandoc -> m Pandoc Source # gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> Pandoc -> m Pandoc Source # gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> Pandoc -> m Pandoc Source # | |||||
| Generic Pandoc | |||||
Defined in Text.Pandoc.Definition Associated Types
| |||||
| Read Pandoc | |||||
| Show Pandoc | |||||
| Eq Pandoc | |||||
| Ord Pandoc | |||||
| HasMeta Pandoc | |||||
Defined in Text.Pandoc.Builder | |||||
| Walkable Block Pandoc | |||||
| Walkable Inline Pandoc | |||||
| Walkable Meta Pandoc | |||||
| Walkable MetaValue Pandoc | |||||
| Walkable Pandoc Pandoc | |||||
| Walkable [Block] Pandoc | |||||
| Walkable [Inline] Pandoc | |||||
| type Rep Pandoc | |||||
Defined in Text.Pandoc.Definition type Rep Pandoc = D1 ('MetaData "Pandoc" "Text.Pandoc.Definition" "pandoc-types-1.23.1.1-7EsQOX1JvASJuDrNxfLPBC" 'False) (C1 ('MetaCons "Pandoc" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Meta) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 [Block]))) | |||||
docAuthors :: Meta -> [[Inline]] #
isNullMeta :: Meta -> Bool #
Constructors
| Caption (Maybe ShortCaption) [Block] |
Instances
| FromJSON Caption | |||||
| ToJSON Caption | |||||
| NFData Caption | |||||
Defined in Text.Pandoc.Definition | |||||
| Data Caption | |||||
Defined in Text.Pandoc.Definition Methods gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> Caption -> c Caption Source # gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c Caption Source # toConstr :: Caption -> Constr Source # dataTypeOf :: Caption -> DataType Source # dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c Caption) Source # dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c Caption) Source # gmapT :: (forall b. Data b => b -> b) -> Caption -> Caption Source # gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> Caption -> r Source # gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> Caption -> r Source # gmapQ :: (forall d. Data d => d -> u) -> Caption -> [u] Source # gmapQi :: Int -> (forall d. Data d => d -> u) -> Caption -> u Source # gmapM :: Monad m => (forall d. Data d => d -> m d) -> Caption -> m Caption Source # gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> Caption -> m Caption Source # gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> Caption -> m Caption Source # | |||||
| Generic Caption | |||||
Defined in Text.Pandoc.Definition Associated Types
| |||||
| Read Caption | |||||
| Show Caption | |||||
| Eq Caption | |||||
| Ord Caption | |||||
Defined in Text.Pandoc.Definition | |||||
| Walkable Block Caption | |||||
| Walkable Inline Caption | |||||
| Walkable [Block] Caption | |||||
| Walkable [Inline] Caption | |||||
| type Rep Caption | |||||
Defined in Text.Pandoc.Definition type Rep Caption = D1 ('MetaData "Caption" "Text.Pandoc.Definition" "pandoc-types-1.23.1.1-7EsQOX1JvASJuDrNxfLPBC" 'False) (C1 ('MetaCons "Caption" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe ShortCaption)) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 [Block]))) | |||||
Constructors
| Citation | |
Fields
| |
Instances
| FromJSON Citation | |||||
| ToJSON Citation | |||||
| NFData Citation | |||||
Defined in Text.Pandoc.Definition | |||||
| Data Citation | |||||
Defined in Text.Pandoc.Definition Methods gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> Citation -> c Citation Source # gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c Citation Source # toConstr :: Citation -> Constr Source # dataTypeOf :: Citation -> DataType Source # dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c Citation) Source # dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c Citation) Source # gmapT :: (forall b. Data b => b -> b) -> Citation -> Citation Source # gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> Citation -> r Source # gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> Citation -> r Source # gmapQ :: (forall d. Data d => d -> u) -> Citation -> [u] Source # gmapQi :: Int -> (forall d. Data d => d -> u) -> Citation -> u Source # gmapM :: Monad m => (forall d. Data d => d -> m d) -> Citation -> m Citation Source # gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> Citation -> m Citation Source # gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> Citation -> m Citation Source # | |||||
| Generic Citation | |||||
Defined in Text.Pandoc.Definition Associated Types
| |||||
| Read Citation | |||||
| Show Citation | |||||
| Eq Citation | |||||
| Ord Citation | |||||
Defined in Text.Pandoc.Definition | |||||
| Walkable Block Citation | |||||
| Walkable Inline Citation | |||||
| Walkable [Block] Citation | |||||
| Walkable [Inline] Citation | |||||
| type Rep Citation | |||||
Defined in Text.Pandoc.Definition type Rep Citation = D1 ('MetaData "Citation" "Text.Pandoc.Definition" "pandoc-types-1.23.1.1-7EsQOX1JvASJuDrNxfLPBC" 'False) (C1 ('MetaCons "Citation" 'PrefixI 'True) ((S1 ('MetaSel ('Just "citationId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: (S1 ('MetaSel ('Just "citationPrefix") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 [Inline]) :*: S1 ('MetaSel ('Just "citationSuffix") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 [Inline]))) :*: (S1 ('MetaSel ('Just "citationMode") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 CitationMode) :*: (S1 ('MetaSel ('Just "citationNoteNum") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedUnpack) (Rec0 Int) :*: S1 ('MetaSel ('Just "citationHash") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedUnpack) (Rec0 Int))))) | |||||
data CitationMode #
Constructors
| AuthorInText | |
| SuppressAuthor | |
| NormalCitation |
Instances
| FromJSON CitationMode | |||||
Defined in Text.Pandoc.Definition Methods parseJSON :: Value -> Parser CitationMode Source # parseJSONList :: Value -> Parser [CitationMode] Source # | |||||
| ToJSON CitationMode | |||||
Defined in Text.Pandoc.Definition Methods toJSON :: CitationMode -> Value Source # toEncoding :: CitationMode -> Encoding Source # toJSONList :: [CitationMode] -> Value Source # toEncodingList :: [CitationMode] -> Encoding Source # omitField :: CitationMode -> Bool Source # | |||||
| NFData CitationMode | |||||
Defined in Text.Pandoc.Definition Methods rnf :: CitationMode -> () Source # | |||||
| Data CitationMode | |||||
Defined in Text.Pandoc.Definition Methods gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> CitationMode -> c CitationMode Source # gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c CitationMode Source # toConstr :: CitationMode -> Constr Source # dataTypeOf :: CitationMode -> DataType Source # dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c CitationMode) Source # dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c CitationMode) Source # gmapT :: (forall b. Data b => b -> b) -> CitationMode -> CitationMode Source # gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> CitationMode -> r Source # gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> CitationMode -> r Source # gmapQ :: (forall d. Data d => d -> u) -> CitationMode -> [u] Source # gmapQi :: Int -> (forall d. Data d => d -> u) -> CitationMode -> u Source # gmapM :: Monad m => (forall d. Data d => d -> m d) -> CitationMode -> m CitationMode Source # gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> CitationMode -> m CitationMode Source # gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> CitationMode -> m CitationMode Source # | |||||
| Generic CitationMode | |||||
Defined in Text.Pandoc.Definition Associated Types
Methods from :: CitationMode -> Rep CitationMode x Source # to :: Rep CitationMode x -> CitationMode Source # | |||||
| Read CitationMode | |||||
Defined in Text.Pandoc.Definition | |||||
| Show CitationMode | |||||
Defined in Text.Pandoc.Definition | |||||
| Eq CitationMode | |||||
Defined in Text.Pandoc.Definition Methods (==) :: CitationMode -> CitationMode -> Bool Source # (/=) :: CitationMode -> CitationMode -> Bool Source # | |||||
| Ord CitationMode | |||||
Defined in Text.Pandoc.Definition Methods compare :: CitationMode -> CitationMode -> Ordering Source # (<) :: CitationMode -> CitationMode -> Bool Source # (<=) :: CitationMode -> CitationMode -> Bool Source # (>) :: CitationMode -> CitationMode -> Bool Source # (>=) :: CitationMode -> CitationMode -> Bool Source # max :: CitationMode -> CitationMode -> CitationMode Source # min :: CitationMode -> CitationMode -> CitationMode Source # | |||||
| type Rep CitationMode | |||||
Defined in Text.Pandoc.Definition type Rep CitationMode = D1 ('MetaData "CitationMode" "Text.Pandoc.Definition" "pandoc-types-1.23.1.1-7EsQOX1JvASJuDrNxfLPBC" 'False) (C1 ('MetaCons "AuthorInText" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "SuppressAuthor" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "NormalCitation" 'PrefixI 'False) (U1 :: Type -> Type))) | |||||
Instances
| FromJSON ColSpan | |||||
| ToJSON ColSpan | |||||
| NFData ColSpan | |||||
Defined in Text.Pandoc.Definition | |||||
| Data ColSpan | |||||
Defined in Text.Pandoc.Definition Methods gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> ColSpan -> c ColSpan Source # gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c ColSpan Source # toConstr :: ColSpan -> Constr Source # dataTypeOf :: ColSpan -> DataType Source # dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c ColSpan) Source # dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c ColSpan) Source # gmapT :: (forall b. Data b => b -> b) -> ColSpan -> ColSpan Source # gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> ColSpan -> r Source # gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> ColSpan -> r Source # gmapQ :: (forall d. Data d => d -> u) -> ColSpan -> [u] Source # gmapQi :: Int -> (forall d. Data d => d -> u) -> ColSpan -> u Source # gmapM :: Monad m => (forall d. Data d => d -> m d) -> ColSpan -> m ColSpan Source # gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> ColSpan -> m ColSpan Source # gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> ColSpan -> m ColSpan Source # | |||||
| Enum ColSpan | |||||
Defined in Text.Pandoc.Definition Methods succ :: ColSpan -> ColSpan Source # pred :: ColSpan -> ColSpan Source # toEnum :: Int -> ColSpan Source # fromEnum :: ColSpan -> Int Source # enumFrom :: ColSpan -> [ColSpan] Source # enumFromThen :: ColSpan -> ColSpan -> [ColSpan] Source # enumFromTo :: ColSpan -> ColSpan -> [ColSpan] Source # enumFromThenTo :: ColSpan -> ColSpan -> ColSpan -> [ColSpan] Source # | |||||
| Generic ColSpan | |||||
Defined in Text.Pandoc.Definition Associated Types
| |||||
| Num ColSpan | |||||
Defined in Text.Pandoc.Definition | |||||
| Read ColSpan | |||||
| Show ColSpan | |||||
| Eq ColSpan | |||||
| Ord ColSpan | |||||
Defined in Text.Pandoc.Definition | |||||
| type Rep ColSpan | |||||
Defined in Text.Pandoc.Definition | |||||
Constructors
| ColWidth Double | |
| ColWidthDefault |
Instances
| FromJSON ColWidth | |||||
| ToJSON ColWidth | |||||
| NFData ColWidth | |||||
Defined in Text.Pandoc.Definition | |||||
| Data ColWidth | |||||
Defined in Text.Pandoc.Definition Methods gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> ColWidth -> c ColWidth Source # gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c ColWidth Source # toConstr :: ColWidth -> Constr Source # dataTypeOf :: ColWidth -> DataType Source # dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c ColWidth) Source # dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c ColWidth) Source # gmapT :: (forall b. Data b => b -> b) -> ColWidth -> ColWidth Source # gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> ColWidth -> r Source # gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> ColWidth -> r Source # gmapQ :: (forall d. Data d => d -> u) -> ColWidth -> [u] Source # gmapQi :: Int -> (forall d. Data d => d -> u) -> ColWidth -> u Source # gmapM :: Monad m => (forall d. Data d => d -> m d) -> ColWidth -> m ColWidth Source # gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> ColWidth -> m ColWidth Source # gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> ColWidth -> m ColWidth Source # | |||||
| Generic ColWidth | |||||
Defined in Text.Pandoc.Definition Associated Types
| |||||
| Read ColWidth | |||||
| Show ColWidth | |||||
| Eq ColWidth | |||||
| Ord ColWidth | |||||
Defined in Text.Pandoc.Definition | |||||
| type Rep ColWidth | |||||
Defined in Text.Pandoc.Definition type Rep ColWidth = D1 ('MetaData "ColWidth" "Text.Pandoc.Definition" "pandoc-types-1.23.1.1-7EsQOX1JvASJuDrNxfLPBC" 'False) (C1 ('MetaCons "ColWidth" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedUnpack) (Rec0 Double)) :+: C1 ('MetaCons "ColWidthDefault" 'PrefixI 'False) (U1 :: Type -> Type)) | |||||
type ListAttributes = (Int, ListNumberStyle, ListNumberDelim) #
data ListNumberDelim #
Constructors
| DefaultDelim | |
| Period | |
| OneParen | |
| TwoParens |
Instances
| FromJSON ListNumberDelim | |||||
Defined in Text.Pandoc.Definition Methods parseJSON :: Value -> Parser ListNumberDelim Source # parseJSONList :: Value -> Parser [ListNumberDelim] Source # | |||||
| ToJSON ListNumberDelim | |||||
Defined in Text.Pandoc.Definition Methods toJSON :: ListNumberDelim -> Value Source # toEncoding :: ListNumberDelim -> Encoding Source # toJSONList :: [ListNumberDelim] -> Value Source # toEncodingList :: [ListNumberDelim] -> Encoding Source # omitField :: ListNumberDelim -> Bool Source # | |||||
| NFData ListNumberDelim | |||||
Defined in Text.Pandoc.Definition Methods rnf :: ListNumberDelim -> () Source # | |||||
| Data ListNumberDelim | |||||
Defined in Text.Pandoc.Definition Methods gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> ListNumberDelim -> c ListNumberDelim Source # gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c ListNumberDelim Source # toConstr :: ListNumberDelim -> Constr Source # dataTypeOf :: ListNumberDelim -> DataType Source # dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c ListNumberDelim) Source # dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c ListNumberDelim) Source # gmapT :: (forall b. Data b => b -> b) -> ListNumberDelim -> ListNumberDelim Source # gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> ListNumberDelim -> r Source # gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> ListNumberDelim -> r Source # gmapQ :: (forall d. Data d => d -> u) -> ListNumberDelim -> [u] Source # gmapQi :: Int -> (forall d. Data d => d -> u) -> ListNumberDelim -> u Source # gmapM :: Monad m => (forall d. Data d => d -> m d) -> ListNumberDelim -> m ListNumberDelim Source # gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> ListNumberDelim -> m ListNumberDelim Source # gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> ListNumberDelim -> m ListNumberDelim Source # | |||||
| Generic ListNumberDelim | |||||
Defined in Text.Pandoc.Definition Associated Types
Methods from :: ListNumberDelim -> Rep ListNumberDelim x Source # to :: Rep ListNumberDelim x -> ListNumberDelim Source # | |||||
| Read ListNumberDelim | |||||
Defined in Text.Pandoc.Definition | |||||
| Show ListNumberDelim | |||||
Defined in Text.Pandoc.Definition | |||||
| Eq ListNumberDelim | |||||
Defined in Text.Pandoc.Definition Methods (==) :: ListNumberDelim -> ListNumberDelim -> Bool Source # (/=) :: ListNumberDelim -> ListNumberDelim -> Bool Source # | |||||
| Ord ListNumberDelim | |||||
Defined in Text.Pandoc.Definition Methods compare :: ListNumberDelim -> ListNumberDelim -> Ordering Source # (<) :: ListNumberDelim -> ListNumberDelim -> Bool Source # (<=) :: ListNumberDelim -> ListNumberDelim -> Bool Source # (>) :: ListNumberDelim -> ListNumberDelim -> Bool Source # (>=) :: ListNumberDelim -> ListNumberDelim -> Bool Source # max :: ListNumberDelim -> ListNumberDelim -> ListNumberDelim Source # min :: ListNumberDelim -> ListNumberDelim -> ListNumberDelim Source # | |||||
| type Rep ListNumberDelim | |||||
Defined in Text.Pandoc.Definition type Rep ListNumberDelim = D1 ('MetaData "ListNumberDelim" "Text.Pandoc.Definition" "pandoc-types-1.23.1.1-7EsQOX1JvASJuDrNxfLPBC" 'False) ((C1 ('MetaCons "DefaultDelim" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "Period" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "OneParen" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "TwoParens" 'PrefixI 'False) (U1 :: Type -> Type))) | |||||
data ListNumberStyle #
Constructors
| DefaultStyle | |
| Example | |
| Decimal | |
| LowerRoman | |
| UpperRoman | |
| LowerAlpha | |
| UpperAlpha |
Instances
| FromJSON ListNumberStyle | |||||
Defined in Text.Pandoc.Definition Methods parseJSON :: Value -> Parser ListNumberStyle Source # parseJSONList :: Value -> Parser [ListNumberStyle] Source # | |||||
| ToJSON ListNumberStyle | |||||
Defined in Text.Pandoc.Definition Methods toJSON :: ListNumberStyle -> Value Source # toEncoding :: ListNumberStyle -> Encoding Source # toJSONList :: [ListNumberStyle] -> Value Source # toEncodingList :: [ListNumberStyle] -> Encoding Source # omitField :: ListNumberStyle -> Bool Source # | |||||
| NFData ListNumberStyle | |||||
Defined in Text.Pandoc.Definition Methods rnf :: ListNumberStyle -> () Source # | |||||
| Data ListNumberStyle | |||||
Defined in Text.Pandoc.Definition Methods gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> ListNumberStyle -> c ListNumberStyle Source # gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c ListNumberStyle Source # toConstr :: ListNumberStyle -> Constr Source # dataTypeOf :: ListNumberStyle -> DataType Source # dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c ListNumberStyle) Source # dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c ListNumberStyle) Source # gmapT :: (forall b. Data b => b -> b) -> ListNumberStyle -> ListNumberStyle Source # gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> ListNumberStyle -> r Source # gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> ListNumberStyle -> r Source # gmapQ :: (forall d. Data d => d -> u) -> ListNumberStyle -> [u] Source # gmapQi :: Int -> (forall d. Data d => d -> u) -> ListNumberStyle -> u Source # gmapM :: Monad m => (forall d. Data d => d -> m d) -> ListNumberStyle -> m ListNumberStyle Source # gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> ListNumberStyle -> m ListNumberStyle Source # gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> ListNumberStyle -> m ListNumberStyle Source # | |||||
| Generic ListNumberStyle | |||||
Defined in Text.Pandoc.Definition Associated Types
Methods from :: ListNumberStyle -> Rep ListNumberStyle x Source # to :: Rep ListNumberStyle x -> ListNumberStyle Source # | |||||
| Read ListNumberStyle | |||||
Defined in Text.Pandoc.Definition | |||||
| Show ListNumberStyle | |||||
Defined in Text.Pandoc.Definition | |||||
| Eq ListNumberStyle | |||||
Defined in Text.Pandoc.Definition Methods (==) :: ListNumberStyle -> ListNumberStyle -> Bool Source # (/=) :: ListNumberStyle -> ListNumberStyle -> Bool Source # | |||||
| Ord ListNumberStyle | |||||
Defined in Text.Pandoc.Definition Methods compare :: ListNumberStyle -> ListNumberStyle -> Ordering Source # (<) :: ListNumberStyle -> ListNumberStyle -> Bool Source # (<=) :: ListNumberStyle -> ListNumberStyle -> Bool Source # (>) :: ListNumberStyle -> ListNumberStyle -> Bool Source # (>=) :: ListNumberStyle -> ListNumberStyle -> Bool Source # max :: ListNumberStyle -> ListNumberStyle -> ListNumberStyle Source # min :: ListNumberStyle -> ListNumberStyle -> ListNumberStyle Source # | |||||
| type Rep ListNumberStyle | |||||
Defined in Text.Pandoc.Definition type Rep ListNumberStyle = D1 ('MetaData "ListNumberStyle" "Text.Pandoc.Definition" "pandoc-types-1.23.1.1-7EsQOX1JvASJuDrNxfLPBC" 'False) ((C1 ('MetaCons "DefaultStyle" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "Example" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "Decimal" 'PrefixI 'False) (U1 :: Type -> Type))) :+: ((C1 ('MetaCons "LowerRoman" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "UpperRoman" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "LowerAlpha" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "UpperAlpha" 'PrefixI 'False) (U1 :: Type -> Type)))) | |||||
Constructors
| DisplayMath | |
| InlineMath |
Instances
| FromJSON MathType | |
| ToJSON MathType | |
| NFData MathType | |
Defined in Text.Pandoc.Definition | |
| Data MathType | |
Defined in Text.Pandoc.Definition Methods gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> MathType -> c MathType Source # gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c MathType Source # toConstr :: MathType -> Constr Source # dataTypeOf :: MathType -> DataType Source # dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c MathType) Source # dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c MathType) Source # gmapT :: (forall b. Data b => b -> b) -> MathType -> MathType Source # gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> MathType -> r Source # gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> MathType -> r Source # gmapQ :: (forall d. Data d => d -> u) -> MathType -> [u] Source # gmapQi :: Int -> (forall d. Data d => d -> u) -> MathType -> u Source # gmapM :: Monad m => (forall d. Data d => d -> m d) -> MathType -> m MathType Source # gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> MathType -> m MathType Source # gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> MathType -> m MathType Source # | |
| Generic MathType | |
Defined in Text.Pandoc.Definition | |
| Read MathType | |
| Show MathType | |
| Eq MathType | |
| Ord MathType | |
Defined in Text.Pandoc.Definition | |
| type Rep MathType | |
Constructors
| MetaMap (Map Text MetaValue) | |
| MetaList [MetaValue] | |
| MetaBool Bool | |
| MetaString Text | |
| MetaInlines [Inline] | |
| MetaBlocks [Block] |
Instances
| FromJSON MetaValue | |||||
| ToJSON MetaValue | |||||
| NFData MetaValue | |||||
Defined in Text.Pandoc.Definition | |||||
| Data MetaValue | |||||
Defined in Text.Pandoc.Definition Methods gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> MetaValue -> c MetaValue Source # gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c MetaValue Source # toConstr :: MetaValue -> Constr Source # dataTypeOf :: MetaValue -> DataType Source # dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c MetaValue) Source # dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c MetaValue) Source # gmapT :: (forall b. Data b => b -> b) -> MetaValue -> MetaValue Source # gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> MetaValue -> r Source # gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> MetaValue -> r Source # gmapQ :: (forall d. Data d => d -> u) -> MetaValue -> [u] Source # gmapQi :: Int -> (forall d. Data d => d -> u) -> MetaValue -> u Source # gmapM :: Monad m => (forall d. Data d => d -> m d) -> MetaValue -> m MetaValue Source # gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> MetaValue -> m MetaValue Source # gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> MetaValue -> m MetaValue Source # | |||||
| Generic MetaValue | |||||
Defined in Text.Pandoc.Definition Associated Types
| |||||
| Read MetaValue | |||||
| Show MetaValue | |||||
| Eq MetaValue | |||||
| Ord MetaValue | |||||
Defined in Text.Pandoc.Definition | |||||
| ToMetaValue MetaValue | |||||
Defined in Text.Pandoc.Builder Methods toMetaValue :: MetaValue -> MetaValue | |||||
| Walkable Block MetaValue | |||||
| Walkable Inline MetaValue | |||||
| Walkable MetaValue Meta | |||||
| Walkable MetaValue MetaValue | |||||
| Walkable MetaValue Pandoc | |||||
| Walkable [Block] MetaValue | |||||
| Walkable [Inline] MetaValue | |||||
| type Rep MetaValue | |||||
Defined in Text.Pandoc.Definition type Rep MetaValue = D1 ('MetaData "MetaValue" "Text.Pandoc.Definition" "pandoc-types-1.23.1.1-7EsQOX1JvASJuDrNxfLPBC" 'False) ((C1 ('MetaCons "MetaMap" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Map Text MetaValue))) :+: (C1 ('MetaCons "MetaList" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 [MetaValue])) :+: C1 ('MetaCons "MetaBool" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Bool)))) :+: (C1 ('MetaCons "MetaString" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)) :+: (C1 ('MetaCons "MetaInlines" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 [Inline])) :+: C1 ('MetaCons "MetaBlocks" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 [Block]))))) | |||||
Constructors
| SingleQuote | |
| DoubleQuote |
Instances
| FromJSON QuoteType | |
| ToJSON QuoteType | |
| NFData QuoteType | |
Defined in Text.Pandoc.Definition | |
| Data QuoteType | |
Defined in Text.Pandoc.Definition Methods gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> QuoteType -> c QuoteType Source # gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c QuoteType Source # toConstr :: QuoteType -> Constr Source # dataTypeOf :: QuoteType -> DataType Source # dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c QuoteType) Source # dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c QuoteType) Source # gmapT :: (forall b. Data b => b -> b) -> QuoteType -> QuoteType Source # gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> QuoteType -> r Source # gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> QuoteType -> r Source # gmapQ :: (forall d. Data d => d -> u) -> QuoteType -> [u] Source # gmapQi :: Int -> (forall d. Data d => d -> u) -> QuoteType -> u Source # gmapM :: Monad m => (forall d. Data d => d -> m d) -> QuoteType -> m QuoteType Source # gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> QuoteType -> m QuoteType Source # gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> QuoteType -> m QuoteType Source # | |
| Generic QuoteType | |
Defined in Text.Pandoc.Definition | |
| Read QuoteType | |
| Show QuoteType | |
| Eq QuoteType | |
| Ord QuoteType | |
Defined in Text.Pandoc.Definition | |
| type Rep QuoteType | |
newtype RowHeadColumns #
Constructors
| RowHeadColumns Int |
Instances
| FromJSON RowHeadColumns | |||||
Defined in Text.Pandoc.Definition Methods parseJSON :: Value -> Parser RowHeadColumns Source # parseJSONList :: Value -> Parser [RowHeadColumns] Source # | |||||
| ToJSON RowHeadColumns | |||||
Defined in Text.Pandoc.Definition Methods toJSON :: RowHeadColumns -> Value Source # toEncoding :: RowHeadColumns -> Encoding Source # toJSONList :: [RowHeadColumns] -> Value Source # toEncodingList :: [RowHeadColumns] -> Encoding Source # omitField :: RowHeadColumns -> Bool Source # | |||||
| NFData RowHeadColumns | |||||
Defined in Text.Pandoc.Definition Methods rnf :: RowHeadColumns -> () Source # | |||||
| Data RowHeadColumns | |||||
Defined in Text.Pandoc.Definition Methods gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> RowHeadColumns -> c RowHeadColumns Source # gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c RowHeadColumns Source # toConstr :: RowHeadColumns -> Constr Source # dataTypeOf :: RowHeadColumns -> DataType Source # dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c RowHeadColumns) Source # dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c RowHeadColumns) Source # gmapT :: (forall b. Data b => b -> b) -> RowHeadColumns -> RowHeadColumns Source # gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> RowHeadColumns -> r Source # gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> RowHeadColumns -> r Source # gmapQ :: (forall d. Data d => d -> u) -> RowHeadColumns -> [u] Source # gmapQi :: Int -> (forall d. Data d => d -> u) -> RowHeadColumns -> u Source # gmapM :: Monad m => (forall d. Data d => d -> m d) -> RowHeadColumns -> m RowHeadColumns Source # gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> RowHeadColumns -> m RowHeadColumns Source # gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> RowHeadColumns -> m RowHeadColumns Source # | |||||
| Enum RowHeadColumns | |||||
Defined in Text.Pandoc.Definition Methods succ :: RowHeadColumns -> RowHeadColumns Source # pred :: RowHeadColumns -> RowHeadColumns Source # toEnum :: Int -> RowHeadColumns Source # fromEnum :: RowHeadColumns -> Int Source # enumFrom :: RowHeadColumns -> [RowHeadColumns] Source # enumFromThen :: RowHeadColumns -> RowHeadColumns -> [RowHeadColumns] Source # enumFromTo :: RowHeadColumns -> RowHeadColumns -> [RowHeadColumns] Source # enumFromThenTo :: RowHeadColumns -> RowHeadColumns -> RowHeadColumns -> [RowHeadColumns] Source # | |||||
| Generic RowHeadColumns | |||||
Defined in Text.Pandoc.Definition Associated Types
Methods from :: RowHeadColumns -> Rep RowHeadColumns x Source # to :: Rep RowHeadColumns x -> RowHeadColumns Source # | |||||
| Num RowHeadColumns | |||||
Defined in Text.Pandoc.Definition Methods (+) :: RowHeadColumns -> RowHeadColumns -> RowHeadColumns Source # (-) :: RowHeadColumns -> RowHeadColumns -> RowHeadColumns Source # (*) :: RowHeadColumns -> RowHeadColumns -> RowHeadColumns Source # negate :: RowHeadColumns -> RowHeadColumns Source # abs :: RowHeadColumns -> RowHeadColumns Source # signum :: RowHeadColumns -> RowHeadColumns Source # fromInteger :: Integer -> RowHeadColumns Source # | |||||
| Read RowHeadColumns | |||||
Defined in Text.Pandoc.Definition | |||||
| Show RowHeadColumns | |||||
Defined in Text.Pandoc.Definition | |||||
| Eq RowHeadColumns | |||||
Defined in Text.Pandoc.Definition Methods (==) :: RowHeadColumns -> RowHeadColumns -> Bool Source # (/=) :: RowHeadColumns -> RowHeadColumns -> Bool Source # | |||||
| Ord RowHeadColumns | |||||
Defined in Text.Pandoc.Definition Methods compare :: RowHeadColumns -> RowHeadColumns -> Ordering Source # (<) :: RowHeadColumns -> RowHeadColumns -> Bool Source # (<=) :: RowHeadColumns -> RowHeadColumns -> Bool Source # (>) :: RowHeadColumns -> RowHeadColumns -> Bool Source # (>=) :: RowHeadColumns -> RowHeadColumns -> Bool Source # max :: RowHeadColumns -> RowHeadColumns -> RowHeadColumns Source # min :: RowHeadColumns -> RowHeadColumns -> RowHeadColumns Source # | |||||
| type Rep RowHeadColumns | |||||
Defined in Text.Pandoc.Definition type Rep RowHeadColumns = D1 ('MetaData "RowHeadColumns" "Text.Pandoc.Definition" "pandoc-types-1.23.1.1-7EsQOX1JvASJuDrNxfLPBC" 'True) (C1 ('MetaCons "RowHeadColumns" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Int))) | |||||
Instances
| FromJSON RowSpan | |||||
| ToJSON RowSpan | |||||
| NFData RowSpan | |||||
Defined in Text.Pandoc.Definition | |||||
| Data RowSpan | |||||
Defined in Text.Pandoc.Definition Methods gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> RowSpan -> c RowSpan Source # gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c RowSpan Source # toConstr :: RowSpan -> Constr Source # dataTypeOf :: RowSpan -> DataType Source # dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c RowSpan) Source # dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c RowSpan) Source # gmapT :: (forall b. Data b => b -> b) -> RowSpan -> RowSpan Source # gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> RowSpan -> r Source # gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> RowSpan -> r Source # gmapQ :: (forall d. Data d => d -> u) -> RowSpan -> [u] Source # gmapQi :: Int -> (forall d. Data d => d -> u) -> RowSpan -> u Source # gmapM :: Monad m => (forall d. Data d => d -> m d) -> RowSpan -> m RowSpan Source # gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> RowSpan -> m RowSpan Source # gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> RowSpan -> m RowSpan Source # | |||||
| Enum RowSpan | |||||
Defined in Text.Pandoc.Definition Methods succ :: RowSpan -> RowSpan Source # pred :: RowSpan -> RowSpan Source # toEnum :: Int -> RowSpan Source # fromEnum :: RowSpan -> Int Source # enumFrom :: RowSpan -> [RowSpan] Source # enumFromThen :: RowSpan -> RowSpan -> [RowSpan] Source # enumFromTo :: RowSpan -> RowSpan -> [RowSpan] Source # enumFromThenTo :: RowSpan -> RowSpan -> RowSpan -> [RowSpan] Source # | |||||
| Generic RowSpan | |||||
Defined in Text.Pandoc.Definition Associated Types
| |||||
| Num RowSpan | |||||
Defined in Text.Pandoc.Definition | |||||
| Read RowSpan | |||||
| Show RowSpan | |||||
| Eq RowSpan | |||||
| Ord RowSpan | |||||
Defined in Text.Pandoc.Definition | |||||
| type Rep RowSpan | |||||
Defined in Text.Pandoc.Definition | |||||
type ShortCaption = [Inline] #