{-# LANGUAGE OverloadedStrings #-}
module Text.Pandoc.Lua.Marshal.CommonState
( typeCommonState
, peekCommonState
, pushCommonState
) where
import HsLua
import Text.Pandoc.Class (CommonState)
typeCommonState :: LuaError e => DocumentedType e CommonState
typeCommonState :: forall e. LuaError e => DocumentedType e CommonState
typeCommonState = Name
-> [(Operation, DocumentedFunction e)]
-> [Member e (DocumentedFunction e) CommonState]
-> DocumentedType e CommonState
forall e a.
LuaError e =>
Name
-> [(Operation, DocumentedFunction e)]
-> [Member e (DocumentedFunction e) a]
-> DocumentedType e a
deftype Name
"CommonState" [] []
peekCommonState :: LuaError e => Peeker e CommonState
peekCommonState :: forall e. LuaError e => Peeker e CommonState
peekCommonState = DocumentedTypeWithList e CommonState (ZonkAny 0)
-> Peeker e CommonState
forall e a itemtype.
LuaError e =>
DocumentedTypeWithList e a itemtype -> Peeker e a
peekUD DocumentedTypeWithList e CommonState (ZonkAny 0)
forall e. LuaError e => DocumentedType e CommonState
typeCommonState
pushCommonState :: LuaError e => Pusher e CommonState
pushCommonState :: forall e. LuaError e => Pusher e CommonState
pushCommonState = DocumentedTypeWithList e CommonState (ZonkAny 1)
-> CommonState -> LuaE e ()
forall e a itemtype.
LuaError e =>
DocumentedTypeWithList e a itemtype -> a -> LuaE e ()
pushUD DocumentedTypeWithList e CommonState (ZonkAny 1)
forall e. LuaError e => DocumentedType e CommonState
typeCommonState