From fb54f3d6792d2f8e7b05e458b59142f8ae6bb3e2 Mon Sep 17 00:00:00 2001 From: Albert Krewinkel Date: Wed, 25 Mar 2020 22:16:27 +0100 Subject: API change: use PandocError for exceptions in Lua subsystem The PandocError type is used throughout the Lua subsystem, all Lua functions throw an exception of this type if an error occurs. The `LuaException` type is removed and no longer exported from `Text.Pandoc.Lua`. In its place, a new constructor `PandocLuaError` is added to PandocError. --- pandoc.cabal | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'pandoc.cabal') diff --git a/pandoc.cabal b/pandoc.cabal index 7c74a26f0..fd1511e0c 100644 --- a/pandoc.cabal +++ b/pandoc.cabal @@ -412,9 +412,9 @@ library blaze-markup >= 0.8 && < 0.9, vector >= 0.10 && < 0.13, jira-wiki-markup >= 1.3 && < 1.4, - hslua >= 1.0.1 && < 1.2, + hslua >= 1.1 && < 1.2, hslua-module-system >= 0.2 && < 0.3, - hslua-module-text >= 0.2 && < 0.3, + hslua-module-text >= 0.2.1 && < 0.3, binary >= 0.5 && < 0.11, SHA >= 1.6 && < 1.7, haddock-library >= 1.8 && < 1.10, @@ -611,6 +611,7 @@ library Text.Pandoc.Writers.Roff, Text.Pandoc.Writers.Powerpoint.Presentation, Text.Pandoc.Writers.Powerpoint.Output, + Text.Pandoc.Lua.ErrorConversion, Text.Pandoc.Lua.Filter, Text.Pandoc.Lua.Global, Text.Pandoc.Lua.Init, @@ -621,6 +622,7 @@ library Text.Pandoc.Lua.Marshaling.Context, Text.Pandoc.Lua.Marshaling.List, Text.Pandoc.Lua.Marshaling.MediaBag, + Text.Pandoc.Lua.Marshaling.PandocError, Text.Pandoc.Lua.Marshaling.ReaderOptions, Text.Pandoc.Lua.Marshaling.Version, Text.Pandoc.Lua.Module.MediaBag, @@ -736,8 +738,9 @@ test-suite test-pandoc text >= 1.1.1.0 && < 1.3, time >= 1.5 && < 1.10, directory >= 1.2.3 && < 1.4, + exceptions >= 0.8 && < 0.11, filepath >= 1.1 && < 1.5, - hslua >= 1.0 && < 1.2, + hslua >= 1.1 && < 1.2, process >= 1.2.3 && < 1.7, temporary >= 1.1 && < 1.4, Diff >= 0.2 && < 0.5, -- cgit v1.2.3