From 17a32a99a5eefadc5ebe66d441b6c4f7a0d2f438 Mon Sep 17 00:00:00 2001 From: Albert Krewinkel Date: Tue, 21 Dec 2021 18:53:37 +0100 Subject: Lua: simplify and deprecate function `pandoc.utils.equals` The function is no longer required for element comparisons; it is now an alias for the `==` operator. --- src/Text/Pandoc/Lua/Module/Utils.hs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/Text/Pandoc') diff --git a/src/Text/Pandoc/Lua/Module/Utils.hs b/src/Text/Pandoc/Lua/Module/Utils.hs index c1bb42410..24fd3402e 100644 --- a/src/Text/Pandoc/Lua/Module/Utils.hs +++ b/src/Text/Pandoc/Lua/Module/Utils.hs @@ -61,9 +61,9 @@ documentedModule = Module =#> functionResult pushInlines "list of inlines" "" , defun "equals" - ### liftPure2 (==) - <#> parameter peekAstElement "AST element" "elem1" "" - <#> parameter peekAstElement "AST element" "elem2" "" + ### equal + <#> parameter pure "AST element" "elem1" "" + <#> parameter pure "AST element" "elem2" "" =#> functionResult pushBool "boolean" "true iff elem1 == elem2" , defun "make_sections" -- cgit v1.2.3