aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/Text/Pandoc/Lua/Marshaling/Attr.hs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Text/Pandoc/Lua/Marshaling/Attr.hs b/src/Text/Pandoc/Lua/Marshaling/Attr.hs
index f69acc61e..2f1f2406a 100644
--- a/src/Text/Pandoc/Lua/Marshaling/Attr.hs
+++ b/src/Text/Pandoc/Lua/Marshaling/Attr.hs
@@ -71,7 +71,7 @@ peekAttribs idx = liftLua (ltype idx) >>= \case
TypeTable -> liftLua (rawlen idx) >>= \case
0 -> peekKeyValuePairs peekText peekText idx
_ -> peekList (peekPair peekText peekText) idx
- _ -> fail "unsupported type"
+ _ -> failPeek "unsupported type"
pushAttribs :: LuaError e => Pusher e [(Text, Text)]
pushAttribs = pushUD typeAttributeList
@@ -139,7 +139,7 @@ peekAttribute idx = (AttributeValue <$!> peekText idx)
lookupKey :: [(Text,Text)] -> Maybe Key -> Maybe Attribute
lookupKey !kvs = \case
- Just (StringKey str) -> AttributeValue <$> lookup str kvs
+ Just (StringKey str) -> AttributeValue <$!> lookup str kvs
Just (IntKey n) -> AttributePair <$!> atMay kvs (n - 1)
Nothing -> Nothing