Skip to content

Commit

Permalink
Remove pandoc prefix on table components
Browse files Browse the repository at this point in the history
  • Loading branch information
tarleb committed Oct 14, 2024
1 parent 15ad818 commit 2dc58d4
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/Text/Pandoc/Lua/Marshal/Cell.hs
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ peekCellFuzzy idx = liftLua (ltype idx) >>= \case

-- | Cell object type.
typeCell :: LuaError e => DocumentedType e Cell
typeCell = deftype "pandoc Cell"
typeCell = deftype "Cell"
[ operation Eq $ defun "__eq"
### liftPure2 (\a b -> fromMaybe False ((==) <$> a <*> b))
<#> parameter (optional . peekCell) "Cell" "self" ""
Expand Down
2 changes: 1 addition & 1 deletion src/Text/Pandoc/Lua/Marshal/Row.hs
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ peekRowFuzzy idx = liftLua (ltype idx) >>= \case

-- | Row object type.
typeRow :: LuaError e => DocumentedType e Row
typeRow = deftype "pandoc Row"
typeRow = deftype "Row"
[ operation Eq $ defun "__eq"
### liftPure2 (\a b -> fromMaybe False ((==) <$> a <*> b))
<#> parameter (optional . peekRow) "Row" "self" ""
Expand Down
2 changes: 1 addition & 1 deletion src/Text/Pandoc/Lua/Marshal/TableFoot.hs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ peekTableFoot = peekUD typeTableFoot

-- | Row object type.
typeTableFoot :: LuaError e => DocumentedType e TableFoot
typeTableFoot = deftype "pandoc TableFoot"
typeTableFoot = deftype "TableFoot"
[ operation Eq $ defun "__eq"
### liftPure2 (\a b -> fromMaybe False ((==) <$> a <*> b))
<#> parameter (optional . peekTableFoot) "TableFoot" "self" ""
Expand Down
2 changes: 1 addition & 1 deletion src/Text/Pandoc/Lua/Marshal/TableHead.hs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ peekTableHead = peekUD typeTableHead

-- | Row object type.
typeTableHead :: LuaError e => DocumentedType e TableHead
typeTableHead = deftype "pandoc TableHead"
typeTableHead = deftype "TableHead"
[ operation Eq $ defun "__eq"
### liftPure2 (\a b -> fromMaybe False ((==) <$> a <*> b))
<#> parameter (optional . peekTableHead) "TableHead" "self" ""
Expand Down

0 comments on commit 2dc58d4

Please sign in to comment.