From 2e916b3abfefc0a57964e8f33aec2d37877f9ced Mon Sep 17 00:00:00 2001
From: Albert Krewinkel <albert@zeitkraut.de>
Date: Sun, 30 Apr 2017 11:50:09 +0200
Subject: Lua module: simplify Attributes, rename to Attr

Attributes was written to behave much like a normal table, in order to
simplify working with it. However, all Attr containing elements were
changed to provide panflute-like accessors to Attr components, rendering
the previous approach unnecessary.
---
 src/Text/Pandoc/Lua/StackInstances.hs | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'src')

diff --git a/src/Text/Pandoc/Lua/StackInstances.hs b/src/Text/Pandoc/Lua/StackInstances.hs
index acf2b7eb1..03f6e06e2 100644
--- a/src/Text/Pandoc/Lua/StackInstances.hs
+++ b/src/Text/Pandoc/Lua/StackInstances.hs
@@ -279,6 +279,6 @@ newtype LuaAttr = LuaAttr { fromLuaAttr :: Attr }
 
 instance StackValue LuaAttr where
   push lua (LuaAttr (id', classes, kv)) =
-    pushViaConstructor lua "Attributes" kv id' classes
+    pushViaConstructor lua "Attr" id' classes kv
   peek lua idx = fmap LuaAttr <$> peek lua idx
   valuetype _ = TTABLE
-- 
cgit v1.2.3