Skip to content

Commit 0d47315

Browse files
committed
Update script comment in release.hs
1 parent 4e5a1b9 commit 0d47315

File tree

1 file changed

+11
-9
lines changed

1 file changed

+11
-9
lines changed

etc/scripts/release.hs

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,17 @@
11
{- stack script
2-
--resolver lts-20.23
3-
--extra-dep Cabal-3.6.3.0
4-
--extra-dep directory-1.3.6.2
5-
--ghc-options -Wall
2+
--resolver lts-20.23
3+
--extra-dep Cabal-3.6.3.0
4+
--extra-dep directory-1.3.6.2
5+
--ghc-options -Wall
66
-}
77

8-
-- The GitHub workflow `integration-tests.yml` works on all operating systems
9-
-- other than Windows without the `--extra-dep Cabal-3.6.3.0` and
10-
-- `--extra-dep directory-1.3.6.2` above. However, on Windows, if they are
11-
-- omitted, then `stack release.hs` somehow calls on Cabal-3.8.1.0 and
12-
-- directory-1.3.8.0, which causes an error.
8+
-- As no packages are specified in the `stack script` command in the Stack
9+
-- interpreter options comment, Stack deduces the required packages from the
10+
-- module imports, being: Cabal, base, bytestring, directory, extra, process,
11+
-- shake, tar, zip-archive and zlib. These are either GHC boot packages or in
12+
-- the snapshot. However, Stackage LTS 20.23 includes `Win32` directly, which
13+
-- results in `Cabal` and `directory` being 'replaced' on Windows. Consequently,
14+
-- they need to be specified as extra deps.
1315

1416
{-# LANGUAGE PatternSynonyms #-}
1517
{-# LANGUAGE RecordWildCards #-}

0 commit comments

Comments
 (0)