Skip to content

Commit b6b95a4

Browse files
committed
Update wiredInPackages
1 parent b71126a commit b6b95a4

File tree

1 file changed

+30
-1
lines changed

1 file changed

+30
-1
lines changed

src/Stack/Constants.hs

Lines changed: 30 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,23 +213,52 @@ inContainerEnvVar = stackProgNameUpper ++ "_IN_CONTAINER"
213213
inNixShellEnvVar :: String
214214
inNixShellEnvVar = map toUpper stackProgName ++ "_IN_NIX_SHELL"
215215

216-
-- See https://downloads.haskell.org/~ghc/7.10.1/docs/html/libraries/ghc/src/Module.html#integerPackageKey
216+
-- | The comment to 'see
217+
-- https://downloads.haskell.org/~ghc/7.10.1/docs/html/libraries/ghc/src/Module.html#integerPackageKey'
218+
-- appears to be out of date.
219+
--
220+
-- See 'Note [About units]' and 'Wired-in units' at
221+
-- https://gitlab.haskell.org/ghc/ghc/-/blob/master/compiler/GHC/Unit.hs.
222+
--
223+
-- The 'wired-in packages' appear to have been replaced by those that have (e.g)
224+
--
225+
-- > ghc-options: -this-unit-id ghc-prim
226+
--
227+
-- in their Cabal file because they are 'magic'.
217228
wiredInPackages :: Set PackageName
218229
wiredInPackages = case mparsed of
219230
Just parsed -> Set.fromList parsed
220231
Nothing -> impureThrow WiredInPackagesNotParsedBug
221232
where
222233
mparsed = mapM parsePackageName
223234
[ "ghc-prim"
235+
-- A magic package
224236
, "integer-gmp"
237+
-- No longer magic > 1.0.3.0. With GHC 9.2.5 at least, there seems to be
238+
-- no problem in using it.
225239
, "integer-simple"
240+
-- A magic package
226241
, "base"
242+
-- A magic package
227243
, "rts"
244+
-- Said to be not a 'real' package
228245
, "template-haskell"
246+
-- A magic package
229247
, "dph-seq"
248+
-- Deprecated in favour of dph-prim-seq, which does not appear to be
249+
-- magic. With GHC 9.2.5 at least, there seems to be no problem in using
250+
-- it.
230251
, "dph-par"
252+
-- Deprecated in favour of dph-prim-par, which does not appear to be
253+
-- magic. With GHC 9.2.5 at least, there seems to be no problem in using
254+
-- it.
231255
, "ghc"
256+
-- A magic package
232257
, "interactive"
258+
-- Could not identify information about this package name. With GHC 9.2.5
259+
-- at least, there seems to be no problem in using it.
260+
, "ghc-bignum"
261+
-- A magic package
233262
]
234263

235264
-- | Just to avoid repetition and magic strings.

0 commit comments

Comments
 (0)