@@ -213,23 +213,52 @@ inContainerEnvVar = stackProgNameUpper ++ "_IN_CONTAINER"
213
213
inNixShellEnvVar :: String
214
214
inNixShellEnvVar = map toUpper stackProgName ++ " _IN_NIX_SHELL"
215
215
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'.
217
228
wiredInPackages :: Set PackageName
218
229
wiredInPackages = case mparsed of
219
230
Just parsed -> Set. fromList parsed
220
231
Nothing -> impureThrow WiredInPackagesNotParsedBug
221
232
where
222
233
mparsed = mapM parsePackageName
223
234
[ " ghc-prim"
235
+ -- A magic package
224
236
, " 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.
225
239
, " integer-simple"
240
+ -- A magic package
226
241
, " base"
242
+ -- A magic package
227
243
, " rts"
244
+ -- Said to be not a 'real' package
228
245
, " template-haskell"
246
+ -- A magic package
229
247
, " 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.
230
251
, " 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.
231
255
, " ghc"
256
+ -- A magic package
232
257
, " 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
233
262
]
234
263
235
264
-- | Just to avoid repetition and magic strings.
0 commit comments