module Text.Pandoc.Lua.Marshal.Format
( peekFormat
, pushFormat
) where
import Control.Monad ((<$!>))
import HsLua
import Text.Pandoc.Definition (Format (Format))
peekFormat :: Peeker e Format
peekFormat :: forall e. Peeker e Format
peekFormat StackIndex
idx = Text -> Format
Format (Text -> Format) -> Peek e Text -> Peek e Format
forall (m :: * -> *) a b. Monad m => (a -> b) -> m a -> m b
<$!> Peeker e Text
forall e. Peeker e Text
peekText StackIndex
idx
pushFormat :: Pusher e Format
pushFormat :: forall e. Pusher e Format
pushFormat (Format Text
f) = Pusher e Text
forall e. Pusher e Text
pushText Text
f