Text.Pandoc.Lua.Marshal.Attr

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

Copyright | © 2017-2021 Albert Krewinkel John MacFarlane
License | MIT
Maintainer | Albert Krewinkel <tarleb+pandoc@moltkeplatz.de>
Safe Haskell | Safe-Inferred
Language | Haskell2010

Text.Pandoc.Lua.Marshal.Attr

Description

Helpers to make pandoc's Attr elements usable in Lua, and to get objects back into Haskell.

Synopsis

- typeAttr :: LuaError e => DocumentedType e Attr
- peekAttr :: LuaError e => Peeker e Attr
- pushAttr :: LuaError e => Pusher e Attr
- typeAttributeList :: LuaError e => DocumentedType e [(Text, Text)]
- pushAttributeList :: LuaError e => Pusher e [(Text, Text)]
- peekAttributeList :: LuaError e => Peeker e [(Text, Text)]
- mkAttr :: LuaError e => DocumentedFunction e
- mkAttributeList :: LuaError e => DocumentedFunction e

# Documentation

typeAttr :: LuaError e => DocumentedType e Attr #

Attr object type.

peekAttr :: LuaError e => Peeker e Attr #

Retrieves an `Attr` value from a string, a table, or an `Attr` userdata object. A string is used as an identifier; a table is either an HTML-like set of attributes, or a triple containing the identifier, classes, and attributes.

pushAttr :: LuaError e => Pusher e Attr #

Pushes an `Attr` value as `Attr` userdata object.

typeAttributeList :: LuaError e => DocumentedType e [(Text, Text)] #

Constructor functions for `AttributeList` elements.

pushAttributeList :: LuaError e => Pusher e [(Text, Text)] #

Pushes an associated list of attributes as `AttributeList` userdata object.

peekAttributeList :: LuaError e => Peeker e [(Text, Text)] #

Retrieves an associated list of attributes from a table or an `AttributeList` userdata object.

mkAttr :: LuaError e => DocumentedFunction e #

Constructor for `Attr`.

mkAttributeList :: LuaError e => DocumentedFunction e #

Constructor for `AttributeList`.