Text.Pandoc.Lua.Marshal.Block

pandoc-lua-marshal-0.1.4: Use pandoc types in Lua

Safe Haskell | Safe-Inferred
Language | Haskell2010

Text.Pandoc.Lua.Marshal.Block

Contents

- Single Block elements
- List of Blocks
- Constructors
- Walk

Description

Marshal values of types that make up `Block` elements.

Synopsis

- peekBlock :: LuaError e => Peeker e Block
- peekBlockFuzzy :: LuaError e => Peeker e Block
- pushBlock :: LuaError e => Pusher e Block
- peekBlocks :: LuaError e => Peeker e [Block]
- peekBlocksFuzzy :: LuaError e => Peeker e [Block]
- pushBlocks :: LuaError e => Pusher e [Block]
- blockConstructors :: LuaError e => [DocumentedFunction e]
- mkBlocks :: LuaError e => DocumentedFunction e
- walkBlockSplicing :: (LuaError e, Walkable (SpliceList Block) a) => Filter -> a -> LuaE e a
- walkBlocksStraight :: (LuaError e, Walkable [Block] a) => Filter -> a -> LuaE e a

# Single Block elements

peekBlock :: LuaError e => Peeker e Block #

Retrieves an Block value.

peekBlockFuzzy :: LuaError e => Peeker e Block #

Try extra hard to retrieve an Block value from the stack. Treats bare strings as `Str` values.

pushBlock :: LuaError e => Pusher e Block #

Pushes an Block value as userdata object.

# List of Blocks

peekBlocks :: LuaError e => Peeker e [Block] #

Retrieves a list of Block values.

peekBlocksFuzzy :: LuaError e => Peeker e [Block] #

Try extra-hard to return the value at the given index as a list of inlines.

pushBlocks :: LuaError e => Pusher e [Block] #

Pushes a list of Block values.

# Constructors

blockConstructors :: LuaError e => [DocumentedFunction e] #

Constructor functions for `Block` elements.

mkBlocks :: LuaError e => DocumentedFunction e #

Constructor for a list of `Block` values.

# Walk

walkBlockSplicing :: (LuaError e, Walkable (SpliceList Block) a) => Filter -> a -> LuaE e a #

walkBlocksStraight :: (LuaError e, Walkable [Block] a) => Filter -> a -> LuaE e a #