Collection of filter functions (at most one function per element constructor)
Modulepandoc-lua-marshal-0.2.7Haskell2010
Text.Pandoc.Lua.Marshal.Filter
Marshaling/unmarshaling functions Lua filters, i.e., tables containing functions to be called on specific elements.
- 3 types
- 9 values
- Packagepandoc-lua-marshal-0.2.7
- Exports12
- LanguageHaskell2010
- LicenceMIT
- SourceFilter.hs
Filters
5 declarationsDescription of how an AST should be traversed.
Constructors
WalkForEachTypeProcess each type separately, traversing the tree bottom-up (leaves to root) for each type.
WalkTopdownTraverse the tree top-down, from root to leaves and depth first, in a single traversal.
Retrieves a default Filter object from the stack, suitable for filtering a full document.
Looks up a filter function in a Lua Filter.
Checks whether the Filter contains a function of the given name.
Individual filter functions
4 declarationsFilter function stored in the registry
Constructors
Retrieves a filter function from the stack.
The value at the given index must be a function. It is stored in the Lua registry.
Pushes a filter function to the stack.
Filter functions are stored in the registry and retrieved from there.
Finds the best filter function for a given element; returns Nothing if no such function exists.
Names in filter functions
3 declarationsThe name of a type's base function, which is called if there is no more specific function for a value.
The name of the functions that's called on lists of the given type.
Filter function names for a given type.