From 1bc3cb16ec6f71bd017d5184cf1be17ea3d9edd1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Amy=20de=20Buitl=C3=A9ir?= Date: Sun, 14 Sep 2025 18:38:18 +0100 Subject: [PATCH] temp --- index.html | 6 +++--- source/recipes/devshell/haskell-pkg/main.adoc0 | 7 +++++++ 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/index.html b/index.html index 9332856..610b1f8 100644 --- a/index.html +++ b/index.html @@ -4917,7 +4917,7 @@ In this example, we will access the extra package from the ha
-
$ runghc Main.hs      # Won't work; package not available
+
$ runghc Main.hs      # Won't work; dependency not available
 
 Main.hs:1:1: error: [GHC-87110]
     Could not find module ‘Data.List.Extra’.
@@ -4926,7 +4926,7 @@ Main.hs:1:1: error: [GHC-87110]
 1 | import Data.List.Extra
   | ^^^^^^^^^^^^^^^^^^^^^^
 $ nix develop
-$ runghc Main.hs      # Works now!
+$ runghc Main.hs      # Works in development environemnt
 "abcde"
 "XYZ"
@@ -5633,7 +5633,7 @@ Hello from your flake!
diff --git a/source/recipes/devshell/haskell-pkg/main.adoc0 b/source/recipes/devshell/haskell-pkg/main.adoc0 index 36af2b3..b288999 100644 --- a/source/recipes/devshell/haskell-pkg/main.adoc0 +++ b/source/recipes/devshell/haskell-pkg/main.adoc0 @@ -14,6 +14,13 @@ Occasionally you might want to run a short Haskell program that depends on a Has but you don't want to bother writing a cabal file. In this example, we will access the `extra` package from the `haskellPackages` set in the nixpkgs repo. +[NOTE] +==== +For non-trivial Haskell development projects, +it's usually more convenient to use `haskell-flake` as described in <<#haskell-flake>>, +together with the high-level workflow described in <<_development_workflows>>. +==== + [source,nix,linenums,highlight='11,16'] .flake.nix ....