aboutsummaryrefslogtreecommitdiff
path: root/stack.yaml
diff options
context:
space:
mode:
authorAlbert Krewinkel <[email protected]>2024-09-21 08:54:05 +0200
committerAlbert Krewinkel <[email protected]>2024-09-21 10:10:35 +0200
commit05aa18420ff83ccdd03d9956b0ff65e659198826 (patch)
treebeaaf131ed5793d0522676ee6102aa43d2804d48 /stack.yaml
parent5ccf380dadec2a4b9323b2a2d2aa6efd8e7b0b03 (diff)
Lua: update List module
The module now comes with a method `:at(index[, def])` that allows to access indices, accepts negative indices to count from the end, and will return the `def` value as a default if the list has no item at the given position. Furthermore, the list constructor `pandoc.List` now accepts iterators. E.g., `pandoc.List(text:gmatch '%S+')` returns the list of words in `text`. Closes: #9835
Diffstat (limited to 'stack.yaml')
-rw-r--r--stack.yaml1
1 files changed, 1 insertions, 0 deletions
diff --git a/stack.yaml b/stack.yaml
index 5b126f5be..69c90d348 100644
--- a/stack.yaml
+++ b/stack.yaml
@@ -22,6 +22,7 @@ extra-deps:
- typst-0.6
# even though the resolver has this version, we need the Hackage revision:
- hslua-module-doclayout-1.1.1.2
+- hslua-list-1.1.2
- git: https://github.com/jgm/commonmark-hs
subdirs: [commonmark, commonmark-pandoc]
commit: 7130ce27089b47588f64946263defc05fd72ab29