summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthew Pickering <matthewtpickering@gmail.com>2023-01-27 14:58:53 +0000
committerMatthew Pickering <matthewtpickering@gmail.com>2023-01-27 14:58:53 +0000
commit545bf8cf1844e2a1c18d2019d1f299ab10099873 (patch)
tree620554cb5a5b2141d7a32343336e9229af65649b
parent2648c09cd3caefbcb5febd41867347b81cd94e47 (diff)
downloadhaskell-545bf8cf1844e2a1c18d2019d1f299ab10099873.tar.gz
Revert "base: NoImplicitPrelude in Data.Void and Data.Kind"
Fixes CI errors of the form. ``` ===> Command failed with error code: 1 ghc: panic! (the 'impossible' happened) GHC version 9.7.20230127: lookupGlobal Failed to load interface for ‘GHC.Num.BigNat’ There are files missing in the ‘ghc-bignum’ package, try running 'ghc-pkg check'. Use -v (or `:set -v` in ghci) to see a list of the files searched for. Call stack: CallStack (from HasCallStack): callStackDoc, called at compiler/GHC/Utils/Panic.hs:189:37 in ghc:GHC.Utils.Panic pprPanic, called at compiler/GHC/Tc/Utils/Env.hs:154:32 in ghc:GHC.Tc.Utils.Env CallStack (from HasCallStack): panic, called at compiler/GHC/Utils/Error.hs:454:29 in ghc:GHC.Utils.Error Please report this as a GHC bug: https://www.haskell.org/ghc/reportabug ``` This reverts commit d0d7ba0fb053ebe7f919a5932066fbc776301ccd. The module now lacks a dependency on GHC.Num.BigNat which it implicitly depends on. It is causing all CI jobs to fail so we revert without haste whilst the patch can be fixed. Fixes #22848
-rw-r--r--libraries/base/Data/Kind.hs3
-rw-r--r--libraries/base/Data/Void.hs1
2 files changed, 1 insertions, 3 deletions
diff --git a/libraries/base/Data/Kind.hs b/libraries/base/Data/Kind.hs
index ec43012748..c616885bb1 100644
--- a/libraries/base/Data/Kind.hs
+++ b/libraries/base/Data/Kind.hs
@@ -1,5 +1,4 @@
-{-# LANGUAGE Trustworthy #-}
-{-# LANGUAGE NoImplicitPrelude #-}
+{-# LANGUAGE Trustworthy, ExplicitNamespaces #-}
-----------------------------------------------------------------------------
-- |
diff --git a/libraries/base/Data/Void.hs b/libraries/base/Data/Void.hs
index bb10a76f9e..226a9ad994 100644
--- a/libraries/base/Data/Void.hs
+++ b/libraries/base/Data/Void.hs
@@ -1,5 +1,4 @@
{-# LANGUAGE Trustworthy #-}
-{-# LANGUAGE NoImplicitPrelude #-}
-----------------------------------------------------------------------------
-- |