diff --git a/index.html b/index.html index f50a74a..c2b6bde 100644 --- a/index.html +++ b/index.html @@ -4866,20 +4866,20 @@ together with the high-level workflow described in inputs = { nixpkgs.url = "github:NixOS/nixpkgs"; flake-utils.url = "github:numtide/flake-utils"; - pandoc-columns.url = "/home/amy/github/pandoc-columns"; - }; + pandoc-columns.url = "/home/amy/github/pandoc-columns"; + }; - outputs = { self, nixpkgs, flake-utils, pandoc-columns }: - flake-utils.lib.eachDefaultSystem (system: + outputs = { self, nixpkgs, flake-utils, pandoc-columns }: + flake-utils.lib.eachDefaultSystem (system: let - pkgs = import nixpkgs { inherit system; }; - customGhc = pkgs.haskellPackages.ghcWithPackages (p: with p; [ pandoc-columns ]); - in + pkgs = import nixpkgs { inherit system; }; + customGhc = pkgs.haskellPackages.ghcWithPackages (p: with p; [ pandoc-columns ]); + in { devShells = rec { - default = pkgs.mkShell { - buildInputs = [ customGhc ]; - }; + default = pkgs.mkShell { + buildInputs = [ customGhc ]; + }; }; } ); @@ -4888,6 +4888,12 @@ together with the high-level workflow described in +

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.

@@ -5638,7 +5644,7 @@ Hello from your flake!
diff --git a/source/recipes/devshell/haskell-pkg/main.adoc0 b/source/recipes/devshell/haskell-pkg/main.adoc0 index ff8246d..f0d7bc4 100644 --- a/source/recipes/devshell/haskell-pkg/main.adoc0 +++ b/source/recipes/devshell/haskell-pkg/main.adoc0 @@ -32,7 +32,7 @@ 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. +Here's a short Haskell program that uses the new flake. [source,haskell,linenums] .Main.hs