This commit is contained in:
Amy de Buitléir 2025-09-15 18:08:42 +01:00
parent d351582364
commit c6d4fff7c6
5 changed files with 100 additions and 69 deletions

View file

@ -21,12 +21,17 @@ it's usually more convenient to use `haskell-flake` as described in <<#haskell-f
together with the _high-level workflow_ described in <<_development_workflows>>.
====
[source,nix,linenums,highlight='11,16']
[source,nix,linenums,highlight='5,8,12,17']
.flake.nix
....
include::flake.nix[]
....
Line 5 adds `pandoc-columns` as an input to this flake.
Line 8 allows the output function to reference `pandoc-columns`.
Line 12 makes a custom GHC that knows about `pandoc-columns`,
and line 17 uses the custom GHC as a build input for this flake.
Here's a short Haskell program that uses it.
[source,haskell,linenums]