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/Format.hs | |
| parent | 8123be654d6ece208df32afc26b4fe1629e78ffd (diff) | |
Lua: switch to HsLua 2.5
Diffstat (limited to 'pandoc-lua-engine/src/Text/Pandoc/Lua/Module/Format.hs')
| -rw-r--r-- | pandoc-lua-engine/src/Text/Pandoc/Lua/Module/Format.hs | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/pandoc-lua-engine/src/Text/Pandoc/Lua/Module/Format.hs b/pandoc-lua-engine/src/Text/Pandoc/Lua/Module/Format.hs index 1b539edfe..dbfaa93ac 100644 --- a/pandoc-lua-engine/src/Text/Pandoc/Lua/Module/Format.hs +++ b/pandoc-lua-engine/src/Text/Pandoc/Lua/Module/Format.hs @@ -23,16 +23,11 @@ import qualified Data.Text as T -- | The "pandoc.format" module. documentedModule :: Module PandocError -documentedModule = Module - { moduleName = "pandoc.format" - , moduleDescription = T.unlines +documentedModule = defmodule "pandoc.format" + `withDescription` T.unlines [ "Information about the formats supported by pandoc." ] - , moduleFields = [] - , moduleOperations = [] - , moduleFunctions = functions - , moduleTypeInitializers = [] - } + `withFunctions` functions -- | Extension module functions. functions :: [DocumentedFunction PandocError] |
