Skip to content

Commit

Permalink
Extend tutorial on picking a snapshot for a version of GHC
Browse files Browse the repository at this point in the history
  • Loading branch information
mpilgrem committed Aug 1, 2024
1 parent c73e04d commit 336d50a
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions doc/tutorial/building_your_project.md
Original file line number Diff line number Diff line change
Expand Up @@ -270,8 +270,22 @@ towards by default as well).
As mentioned, a snapshot specifies a version of GHC as well as a set of package
versions.

Let's try using an older LTS snapshot. We'll use the Stackage LTS Haskell 21.25
snapshot with the command:
??? question "I want to use a particular version of GHC. What snapshot should I use?"

For each supported version of GHC, the Stackage
[homepage](https://www.stackage.org/) lists the most recent Stackage
snapshot. In most cases, that is the snapshot you should use.

??? question "Can I use a snapshot like `ghc-9.6.6`?"

Snapshot `ghc-9.6.6` specifies GHC 9.6.6 and, consequently, the GHC boot
packages that come with that compiler. However, the snapshot does not
include the many other package versions that will work with that compiler.
For a set of those package versions, see the snapshots published by the
[Stackage](https://www.stackage.org/) project.

Let us try using an older Stackage LTS Haskell snapshot. We will use the LTS
21.25 snapshot with the command:

~~~text
stack --snapshot lts-21.25 build
Expand Down

0 comments on commit 336d50a

Please sign in to comment.