write literate haskell programs in typst
cdn.oppi.li/typst-unlit.pdf
haskell
typst
1#!/usr/bin/env bash
2
3# this does the same thing as typst-unlit.lhs, but depends on typst and jq
4# this script does clobber the line numbers, so users beware
5
6typst query "$3" 'raw.where(lang: "haskell-top")' | jq -r '.[].text' > "$4"
7typst query "$3" 'raw.where(lang: "haskell")' | jq -r '.[].text' >> "$4"