{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE ScopedTypeVariables #-}
module Text.Pandoc.Lua.Module.System
( documentedModule
) where
import HsLua
import HsLua.Module.System
(arch, env, getwd, os, with_env, with_tmpdir, with_wd)
documentedModule :: LuaError e => Module e
documentedModule :: forall e. LuaError e => Module e
documentedModule = Module :: forall e.
Name
-> Text
-> [Field e]
-> [DocumentedFunction e]
-> [(Operation, DocumentedFunction e)]
-> Module e
Module
{ moduleName :: Name
moduleName = Name
"pandoc.system"
, moduleDescription :: Text
moduleDescription = Text
"system functions"
, moduleFields :: [Field e]
moduleFields =
[ Field e
forall e. Field e
arch
, Field e
forall e. Field e
os
]
, moduleFunctions :: [DocumentedFunction e]
moduleFunctions =
[ Name -> DocumentedFunction e -> DocumentedFunction e
forall e. Name -> DocumentedFunction e -> DocumentedFunction e
setName Name
"environment" DocumentedFunction e
forall e. LuaError e => DocumentedFunction e
env
, Name -> DocumentedFunction e -> DocumentedFunction e
forall e. Name -> DocumentedFunction e -> DocumentedFunction e
setName Name
"get_working_directory" DocumentedFunction e
forall e. LuaError e => DocumentedFunction e
getwd
, Name -> DocumentedFunction e -> DocumentedFunction e
forall e. Name -> DocumentedFunction e -> DocumentedFunction e
setName Name
"with_environment" DocumentedFunction e
forall e. LuaError e => DocumentedFunction e
with_env
, Name -> DocumentedFunction e -> DocumentedFunction e
forall e. Name -> DocumentedFunction e -> DocumentedFunction e
setName Name
"with_temporary_directory" DocumentedFunction e
forall e. LuaError e => DocumentedFunction e
with_tmpdir
, Name -> DocumentedFunction e -> DocumentedFunction e
forall e. Name -> DocumentedFunction e -> DocumentedFunction e
setName Name
"with_working_directory" DocumentedFunction e
forall e. LuaError e => DocumentedFunction e
with_wd
]
, moduleOperations :: [(Operation, DocumentedFunction e)]
moduleOperations = []
}