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/Text.hs | |
| parent | 8123be654d6ece208df32afc26b4fe1629e78ffd (diff) | |
Lua: switch to HsLua 2.5
Diffstat (limited to 'pandoc-lua-engine/src/Text/Pandoc/Lua/Module/Text.hs')
| -rw-r--r-- | pandoc-lua-engine/src/Text/Pandoc/Lua/Module/Text.hs | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/pandoc-lua-engine/src/Text/Pandoc/Lua/Module/Text.hs b/pandoc-lua-engine/src/Text/Pandoc/Lua/Module/Text.hs index 8c43df526..f40cc001e 100644 --- a/pandoc-lua-engine/src/Text/Pandoc/Lua/Module/Text.hs +++ b/pandoc-lua-engine/src/Text/Pandoc/Lua/Module/Text.hs @@ -22,9 +22,8 @@ import qualified HsLua.Module.Text as TM -- | The @aeson@ module specification. documentedModule :: Module PandocError -documentedModule = TM.documentedModule - { moduleName = "pandoc.text" - , moduleFunctions = +documentedModule = defmodule "pandoc.text" + `withFunctions` [ TM.fromencoding `since` v[3,0] , TM.len `since` v[2,0,3] , TM.lower `since` v[2,0,3] @@ -35,7 +34,7 @@ documentedModule = TM.documentedModule , TM.toencoding `since` v[3,0] , TM.upper `since` v[2,0,3] ] - , moduleDescription = T.unlines + `withDescription` T.unlines [ "UTF-8 aware text manipulation functions, implemented in Haskell." , "" , "The text module can also be loaded under the name `text`, although" @@ -49,7 +48,6 @@ documentedModule = TM.documentedModule , "end" , "```" ] - } where v = makeVersion |
