-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
48 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
{- | | ||
Copyright : © 2021-2024 Albert Krewinkel | ||
SPDX-License-Identifier : MIT | ||
Maintainer : Albert Krewinkel <[email protected]> | ||
Marshaling/unmarshaling functions of table 'Cell' values. | ||
-} | ||
module Text.Pandoc.Lua.Marshal.Cell | ||
( peekCell | ||
, peekCellFuzzy | ||
, pushCell | ||
, typeCell | ||
, mkCell | ||
) where | ||
|
||
import HsLua | ||
import Text.Pandoc.Definition | ||
|
||
-- | Push a table cell as a table with fields @attr@, @alignment@, | ||
-- @row_span@, @col_span@, and @contents@. | ||
pushCell :: LuaError e => Cell -> LuaE e () | ||
|
||
-- | Retrieves a 'Cell' object from the stack. | ||
peekCell :: LuaError e => Peeker e Cell | ||
|
||
-- | Retrieves a 'Cell' from the stack, accepting either a 'pandoc Cell' | ||
-- userdata object or a table with fields @attr@, @alignment@, @row_span@, | ||
-- @col_span@, and @contents@. | ||
peekCellFuzzy :: LuaError e => Peeker e Cell | ||
|
||
-- | Cell object type. | ||
typeCell :: LuaError e => DocumentedType e Cell | ||
|
||
-- | Constructor function for 'Cell' values. | ||
mkCell :: LuaError e => DocumentedFunction e |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters