Safe Haskell | None |
---|---|
Language | Haskell98 |
Text.Pandoc.Legacy.Builder
Synopsis
- module Text.Pandoc.Legacy.Definition
- newtype Many a = Many {
- unMany :: Seq a
- type Inlines = Many Inline
- type Blocks = Many Block
- (<>) :: Semigroup a => a -> a -> a
- singleton :: a -> Many a
- toList :: Many a -> [a]
- fromList :: [a] -> Many a
- isNull :: Many a -> Bool
- doc :: Blocks -> Pandoc
- class ToMetaValue a where
- toMetaValue :: a -> MetaValue
- class HasMeta a where
- setMeta :: ToMetaValue b => String -> b -> a -> a
- deleteMeta :: String -> a -> a
- setTitle :: Inlines -> Pandoc -> Pandoc
- setAuthors :: [Inlines] -> Pandoc -> Pandoc
- setDate :: Inlines -> Pandoc -> Pandoc
- text :: String -> Inlines
- str :: String -> Inlines
- emph :: Inlines -> Inlines
- strong :: Inlines -> Inlines
- strikeout :: Inlines -> Inlines
- superscript :: Inlines -> Inlines
- subscript :: Inlines -> Inlines
- smallcaps :: Inlines -> Inlines
- singleQuoted :: Inlines -> Inlines
- doubleQuoted :: Inlines -> Inlines
- cite :: [Citation] -> Inlines -> Inlines
- codeWith :: Attr -> String -> Inlines
- code :: String -> Inlines
- space :: Inlines
- softbreak :: Inlines
- linebreak :: Inlines
- math :: String -> Inlines
- displayMath :: String -> Inlines
- rawInline :: String -> String -> Inlines
- link :: String -> String -> Inlines -> Inlines
- linkWith :: Attr -> String -> String -> Inlines -> Inlines
- image :: String -> String -> Inlines -> Inlines
- imageWith :: Attr -> String -> String -> Inlines -> Inlines
- note :: Blocks -> Inlines
- spanWith :: Attr -> Inlines -> Inlines
- trimInlines :: Inlines -> Inlines
- para :: Inlines -> Blocks
- plain :: Inlines -> Blocks
- lineBlock :: [Inlines] -> Blocks
- codeBlockWith :: Attr -> String -> Blocks
- codeBlock :: String -> Blocks
- rawBlock :: String -> String -> Blocks
- blockQuote :: Blocks -> Blocks
- bulletList :: [Blocks] -> Blocks
- orderedListWith :: ListAttributes -> [Blocks] -> Blocks
- orderedList :: [Blocks] -> Blocks
- definitionList :: [(Inlines, [Blocks])] -> Blocks
- header :: Int -> Inlines -> Blocks
- headerWith :: Attr -> Int -> Inlines -> Blocks
- horizontalRule :: Blocks
- table :: Inlines -> [(Alignment, Double)] -> [Blocks] -> [[Blocks]] -> Blocks
- simpleTable :: [Blocks] -> [[Blocks]] -> Blocks
- divWith :: Attr -> Blocks -> Blocks
Documentation
Instances
Functor Many # | |
IsString Inlines # | |
Defined in Text.Pandoc.Builder Methods fromString :: String -> Inlines | |
Foldable Many # | |
Defined in Text.Pandoc.Builder Methods fold :: Monoid m => Many m -> m foldMap :: Monoid m => (a -> m) -> Many a -> m foldMap' :: Monoid m => (a -> m) -> Many a -> m foldr :: (a -> b -> b) -> b -> Many a -> b foldr' :: (a -> b -> b) -> b -> Many a -> b foldl :: (b -> a -> b) -> b -> Many a -> b foldl' :: (b -> a -> b) -> b -> Many a -> b foldr1 :: (a -> a -> a) -> Many a -> a foldl1 :: (a -> a -> a) -> Many a -> a elem :: Eq a => a -> Many a -> Bool maximum :: Ord a => Many a -> a | |
Traversable Many # | |
Semigroup Blocks # | |
Semigroup Inlines # | |
Monoid Blocks # | |
Monoid Inlines # | |
Arbitrary Blocks # | |
Arbitrary Inlines # | |
ToMetaValue Blocks # | |
Defined in Text.Pandoc.Builder Methods toMetaValue :: Blocks -> MetaValue # | |
ToMetaValue Inlines # | |
Defined in Text.Pandoc.Builder Methods toMetaValue :: Inlines -> MetaValue # | |
ToMetaValue Blocks # | |
Defined in Text.Pandoc.Legacy.Builder Methods toMetaValue :: Blocks -> MetaValue # | |
ToMetaValue Inlines # | |
Defined in Text.Pandoc.Legacy.Builder Methods toMetaValue :: Inlines -> MetaValue # | |
Eq a => Eq (Many a) # | |
Data a => Data (Many a) # | |
Defined in Text.Pandoc.Builder Methods gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> Many a -> c (Many a) gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c (Many a) dataTypeOf :: Many a -> DataType dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c (Many a)) dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c (Many a)) gmapT :: (forall b. Data b => b -> b) -> Many a -> Many a gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> Many a -> r gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> Many a -> r gmapQ :: (forall d. Data d => d -> u) -> Many a -> [u] gmapQi :: Int -> (forall d. Data d => d -> u) -> Many a -> u gmapM :: Monad m => (forall d. Data d => d -> m d) -> Many a -> m (Many a) gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> Many a -> m (Many a) gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> Many a -> m (Many a) | |
Ord a => Ord (Many a) # | |
Read a => Read (Many a) # | |
Show a => Show (Many a) # | |
Generic (Many a) # | |
type Rep (Many a) # | |
Defined in Text.Pandoc.Builder type Rep (Many a) = D1 ('MetaData "Many" "Text.Pandoc.Builder" "pandoc-types-1.20-HUVGH8FTu7u3QBIVEMYWBH" 'True) (C1 ('MetaCons "Many" 'PrefixI 'True) (S1 ('MetaSel ('Just "unMany") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Seq a)))) |
class ToMetaValue a where #
Methods
toMetaValue :: a -> MetaValue #
Instances
ToMetaValue Bool # | |
Defined in Text.Pandoc.Legacy.Builder Methods toMetaValue :: Bool -> MetaValue # | |
ToMetaValue String # | |
Defined in Text.Pandoc.Legacy.Builder Methods toMetaValue :: String -> MetaValue # | |
ToMetaValue MetaValue # | |
Defined in Text.Pandoc.Legacy.Builder Methods toMetaValue :: MetaValue -> MetaValue # | |
ToMetaValue Blocks # | |
Defined in Text.Pandoc.Legacy.Builder Methods toMetaValue :: Blocks -> MetaValue # | |
ToMetaValue Inlines # | |
Defined in Text.Pandoc.Legacy.Builder Methods toMetaValue :: Inlines -> MetaValue # | |
ToMetaValue a => ToMetaValue [a] # | |
Defined in Text.Pandoc.Legacy.Builder Methods toMetaValue :: [a] -> MetaValue # | |
ToMetaValue a => ToMetaValue (Map String a) # | |
Defined in Text.Pandoc.Legacy.Builder Methods toMetaValue :: Map String a -> MetaValue # |
Instances
HasMeta Meta # | |
Defined in Text.Pandoc.Legacy.Builder | |
HasMeta Pandoc # | |
Defined in Text.Pandoc.Legacy.Builder |
setAuthors :: [Inlines] -> Pandoc -> Pandoc #
superscript :: Inlines -> Inlines #
singleQuoted :: Inlines -> Inlines #
doubleQuoted :: Inlines -> Inlines #
displayMath :: String -> Inlines #
trimInlines :: Inlines -> Inlines #
Trim leading and trailing spaces and softbreaks from an Inlines.
codeBlockWith :: Attr -> String -> Blocks #
blockQuote :: Blocks -> Blocks #
bulletList :: [Blocks] -> Blocks #
orderedListWith :: ListAttributes -> [Blocks] -> Blocks #
Ordered list with attributes.
orderedList :: [Blocks] -> Blocks #
Ordered list with default attributes.
definitionList :: [(Inlines, [Blocks])] -> Blocks #
headerWith :: Attr -> Int -> Inlines -> Blocks #
Arguments
:: Inlines | Caption |
-> [(Alignment, Double)] | Column alignments and fractional widths |
-> [Blocks] | Headers |
-> [[Blocks]] | Rows |
-> Blocks |
Table builder. Rows and headers will be padded or truncated to the size of
cellspecs
A simple table without a caption.