aboutsummaryrefslogtreecommitdiff
path: root/src/Text/Pandoc
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2020-12-16 07:56:07 -0800
committerJohn MacFarlane <jgm@berkeley.edu>2020-12-16 07:56:07 -0800
commit57241e201a637d32b5d37b197463a4b96825a6ea (patch)
tree457aba3dd289c4a83e42293a115c9c1f369405c5 /src/Text/Pandoc
parentb4b4e32307499aafa2e6c1c713ee41f1c787ea76 (diff)
downloadpandoc-57241e201a637d32b5d37b197463a4b96825a6ea.tar.gz
Support Lua marshalling of doctemplates BoolVal.
This updates T.P.Lua.Marshaling.Context for doctemplates >= 0.9.
Diffstat (limited to 'src/Text/Pandoc')
-rw-r--r--src/Text/Pandoc/Lua/Marshaling/Context.hs1
1 files changed, 1 insertions, 0 deletions
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