aboutsummaryrefslogtreecommitdiff
path: root/src/Text/Pandoc/Lua/Marshaling.hs
diff options
context:
space:
mode:
authorAlbert Krewinkel <albert@zeitkraut.de>2019-05-19 15:26:00 +0200
committerAlbert Krewinkel <albert@zeitkraut.de>2019-05-29 10:07:43 +0200
commit505f5bf5d951a5c4342f7acce9bea5f260dc9d78 (patch)
tree3b201baedf4003cdb17fa58c444bbb158faf213d /src/Text/Pandoc/Lua/Marshaling.hs
parentd07ed83d705df491bba7b295bd5e80629d971685 (diff)
downloadpandoc-505f5bf5d951a5c4342f7acce9bea5f260dc9d78.tar.gz
Lua: add Version type to simplify comparisons
Version specifiers like `PANDOC_VERSION` and `PANDOC_API_VERSION` are turned into `Version` objects. The objects simplify version-appropriate comparisons while maintaining backward-compatibility. A function `pandoc.types.Version` is added as part of the newly introduced module `pandoc.types`, allowing users to create version objects in scripts.
Diffstat (limited to 'src/Text/Pandoc/Lua/Marshaling.hs')
-rw-r--r--src/Text/Pandoc/Lua/Marshaling.hs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/Text/Pandoc/Lua/Marshaling.hs b/src/Text/Pandoc/Lua/Marshaling.hs
index cc0451c09..8a1270ab7 100644
--- a/src/Text/Pandoc/Lua/Marshaling.hs
+++ b/src/Text/Pandoc/Lua/Marshaling.hs
@@ -14,3 +14,4 @@ module Text.Pandoc.Lua.Marshaling () where
import Text.Pandoc.Lua.Marshaling.AST ()
import Text.Pandoc.Lua.Marshaling.CommonState ()
import Text.Pandoc.Lua.Marshaling.ReaderOptions ()
+import Text.Pandoc.Lua.Marshaling.Version ()