aboutsummaryrefslogtreecommitdiff
path: root/pandoc-lua-engine/src/Text/Pandoc/Lua/Module/System.hs
diff options
context:
space:
mode:
authorAlbert Krewinkel <[email protected]>2023-03-19 13:44:59 +0100
committerAlbert Krewinkel <[email protected]>2023-03-19 15:09:23 +0100
commit7743c5287a54abe71da8fb316a34cb9f1f37c358 (patch)
tree9f3859e6badf29a78bbbd5b85ee4efed62ab7789 /pandoc-lua-engine/src/Text/Pandoc/Lua/Module/System.hs
parent07c56322c24062082b798961573f0dbb22c4937b (diff)
Lua: add info on when functions became available in pandoc
Diffstat (limited to 'pandoc-lua-engine/src/Text/Pandoc/Lua/Module/System.hs')
-rw-r--r--pandoc-lua-engine/src/Text/Pandoc/Lua/Module/System.hs18
1 files changed, 10 insertions, 8 deletions
diff --git a/pandoc-lua-engine/src/Text/Pandoc/Lua/Module/System.hs b/pandoc-lua-engine/src/Text/Pandoc/Lua/Module/System.hs
index 1d685e13e..367b74a33 100644
--- a/pandoc-lua-engine/src/Text/Pandoc/Lua/Module/System.hs
+++ b/pandoc-lua-engine/src/Text/Pandoc/Lua/Module/System.hs
@@ -31,15 +31,17 @@ documentedModule = Module
]
, moduleFunctions =
[ cputime `since` makeVersion [3, 1, 1]
- , setName "environment" env
- , setName "get_working_directory" getwd
- , setName "list_directory" ls
- , setName "make_directory" mkdir
- , setName "remove_directory" rmdir
- , setName "with_environment" with_env
- , setName "with_temporary_directory" with_tmpdir
- , setName "with_working_directory" with_wd
+ , setName "environment" env `since` v[2,7,3]
+ , setName "get_working_directory" getwd `since` v[2,8]
+ , setName "list_directory" ls `since` v[2,19]
+ , setName "make_directory" mkdir `since` v[2,19]
+ , setName "remove_directory" rmdir `since` v[2,19]
+ , setName "with_environment" with_env `since` v[2,7,3]
+ , setName "with_temporary_directory" with_tmpdir `since` v[2,8]
+ , setName "with_working_directory" with_wd `since` v[2,7,3]
]
, moduleOperations = []
, moduleTypeInitializers = []
}
+ where
+ v = makeVersion