From 57241e201a637d32b5d37b197463a4b96825a6ea Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Wed, 16 Dec 2020 07:56:07 -0800 Subject: Support Lua marshalling of doctemplates BoolVal. This updates T.P.Lua.Marshaling.Context for doctemplates >= 0.9. --- src/Text/Pandoc/Lua/Marshaling/Context.hs | 1 + 1 file changed, 1 insertion(+) (limited to 'src/Text/Pandoc/Lua') diff --git a/src/Text/Pandoc/Lua/Marshaling/Context.hs b/src/Text/Pandoc/Lua/Marshaling/Context.hs index effcc675d..c0e7aef60 100644 --- a/src/Text/Pandoc/Lua/Marshaling/Context.hs +++ b/src/Text/Pandoc/Lua/Marshaling/Context.hs @@ -22,6 +22,7 @@ instance (TemplateTarget a, Pushable a) => Pushable (Context a) where instance (TemplateTarget a, Pushable a) => Pushable (Val a) where push NullVal = Lua.push () + push (BoolVal b) = Lua.push b push (MapVal ctx) = Lua.push ctx push (ListVal xs) = Lua.push xs push (SimpleVal d) = Lua.push $ render Nothing d -- cgit v1.2.3