diff options
| author | Albert Krewinkel <[email protected]> | 2026-01-08 17:29:39 +0100 |
|---|---|---|
| committer | Albert Krewinkel <[email protected]> | 2026-01-08 17:55:04 +0100 |
| commit | cb8739f5b079ad5d73be6601eb7dd62c61c533a1 (patch) | |
| tree | 27b6c4ffba933c8f83ebd97cbde712276e3f020c /pandoc-lua-engine/src/Text/Pandoc/Lua/Module/Image.hs | |
| parent | 8123be654d6ece208df32afc26b4fe1629e78ffd (diff) | |
Lua: switch to HsLua 2.5
Diffstat (limited to 'pandoc-lua-engine/src/Text/Pandoc/Lua/Module/Image.hs')
| -rw-r--r-- | pandoc-lua-engine/src/Text/Pandoc/Lua/Module/Image.hs | 19 |
1 files changed, 3 insertions, 16 deletions
diff --git a/pandoc-lua-engine/src/Text/Pandoc/Lua/Module/Image.hs b/pandoc-lua-engine/src/Text/Pandoc/Lua/Module/Image.hs index cf9f8e55d..05719994a 100644 --- a/pandoc-lua-engine/src/Text/Pandoc/Lua/Module/Image.hs +++ b/pandoc-lua-engine/src/Text/Pandoc/Lua/Module/Image.hs @@ -34,22 +34,9 @@ import qualified Data.Text as T -- | The @pandoc.image@ module specification. documentedModule :: Module PandocError -documentedModule = Module - { moduleName = "pandoc.image" - , moduleDescription = "Basic image querying functions." - , moduleFields = fields - , moduleFunctions = functions - , moduleOperations = [] - , moduleTypeInitializers = [] - } - --- --- Fields --- - --- | Exported fields. -fields :: LuaError e => [Field e] -fields = [] +documentedModule = defmodule "pandoc.image" + `withDescription` "Basic image querying functions." + `withFunctions` functions -- -- Functions |
