diff options
| author | Albert Krewinkel <albert@zeitkraut.de> | 2022-09-29 09:45:14 +0200 |
|---|---|---|
| committer | John MacFarlane <jgm@berkeley.edu> | 2022-09-30 08:33:40 -0700 |
| commit | ddaadc88bc7e09fdff35fcf100a0f9fbe5d17728 (patch) | |
| tree | bbddc6be332d8edcd5d78743b7ca259253bc07a3 /src/Text/Pandoc/Lua | |
| parent | e099de1d4d2f4ca865596a6608774c7c0940a0d9 (diff) | |
[API Change] Rename `pandocVersion` to `pandocVersionText`...
and add a new `pandocVersion` value with type `Version`. This is
consistent with the type used for `pandocTypesVersion` and allows to use
the value where a Version type is required.
Diffstat (limited to 'src/Text/Pandoc/Lua')
| -rw-r--r-- | src/Text/Pandoc/Lua/Global.hs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Text/Pandoc/Lua/Global.hs b/src/Text/Pandoc/Lua/Global.hs index 938cc84b7..24fe685a5 100644 --- a/src/Text/Pandoc/Lua/Global.hs +++ b/src/Text/Pandoc/Lua/Global.hs @@ -16,7 +16,6 @@ module Text.Pandoc.Lua.Global import HsLua as Lua import HsLua.Module.Version (pushVersion) -import Paths_pandoc (version) import Text.Pandoc.Class.CommonState (CommonState) import Text.Pandoc.Definition (Pandoc, pandocTypesVersion) import Text.Pandoc.Error (PandocError) @@ -26,6 +25,7 @@ import Text.Pandoc.Lua.Marshal.ReaderOptions (pushReaderOptionsReadonly) import Text.Pandoc.Lua.Marshal.WriterOptions (pushWriterOptions) import Text.Pandoc.Lua.Orphans () import Text.Pandoc.Options (ReaderOptions, WriterOptions) +import Text.Pandoc.Shared (pandocVersion) import qualified Data.Text as Text @@ -70,5 +70,5 @@ setGlobal global = case global of pushCommonState commonState Lua.setglobal "PANDOC_STATE" PANDOC_VERSION -> do - pushVersion version + pushVersion pandocVersion Lua.setglobal "PANDOC_VERSION" |
