diff options
author | Albert Krewinkel <albert@zeitkraut.de> | 2017-04-30 11:50:09 +0200 |
---|---|---|
committer | Albert Krewinkel <albert@zeitkraut.de> | 2017-04-30 11:50:09 +0200 |
commit | 2e916b3abfefc0a57964e8f33aec2d37877f9ced (patch) | |
tree | 062c5cf4b0b52e6706fdb5bb349bdc1111e0d86d /src/Text | |
parent | 3362cb89d9034b84ec9504ff55ed0f79aa02f7e4 (diff) | |
download | pandoc-2e916b3abfefc0a57964e8f33aec2d37877f9ced.tar.gz |
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.
Diffstat (limited to 'src/Text')
-rw-r--r-- | src/Text/Pandoc/Lua/StackInstances.hs | 2 |
1 files changed, 1 insertions, 1 deletions
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 |