base 4.21.1.0 → 4.21.2.0
raw patch · 4 files changed
+10/−3 lines, 4 filesdep ~ghc-internalPVP ok
version bump matches the API change (PVP)
Dependency ranges changed: ghc-internal
API changes (from Hackage documentation)
+ Control.Exception.Backtrace: Backtraces :: Maybe (Ptr CostCentreStack) -> Maybe CallStack -> Maybe StackTrace -> Maybe StackSnapshot -> Backtraces
+ Control.Exception.Backtrace: [btrCostCentre] :: Backtraces -> Maybe (Ptr CostCentreStack)
+ Control.Exception.Backtrace: [btrExecutionStack] :: Backtraces -> Maybe StackTrace
+ Control.Exception.Backtrace: [btrHasCallStack] :: Backtraces -> Maybe CallStack
+ Control.Exception.Backtrace: [btrIpe] :: Backtraces -> Maybe StackSnapshot
Files
- base.cabal +2/−2
- changelog.md +5/−0
- src/Control/Exception/Backtrace.hs +1/−1
- src/System/Info.hs +2/−0
base.cabal view
@@ -4,7 +4,7 @@ -- Make sure you are editing ghc-experimental.cabal.in, not ghc-experimental.cabal name: base-version: 4.21.1.0+version: 4.21.2.0 -- NOTE: Don't forget to update ./changelog.md license: BSD-3-Clause@@ -30,7 +30,7 @@ default-language: Haskell2010 default-extensions: NoImplicitPrelude build-depends:- ghc-internal == 9.1203.*,+ ghc-internal == 9.1204.*, ghc-prim, exposed-modules:
changelog.md view
@@ -1,5 +1,10 @@ # Changelog for [`base` package](http://hackage.haskell.org/package/base) +## 4.21.2.0 *March 2026*+ * Expose `Backtraces` constructor and fields ([CLC proposal #199](https://github.com/haskell/core-libraries-committee/issues/199), [#26049](https://gitlab.haskell.org/ghc/ghc/-/issues/26049))+ * Store `StackTrace` and `StackSnapshot` in `Backtraces`, deferring decoding until display+ * Evaluate backtraces for "error" exceptions at the moment they are thrown ([CLC proposal #383](https://github.com/haskell/core-libraries-committee/issues/383), [#26751](https://gitlab.haskell.org/ghc/ghc/-/issues/26751))+ ## 4.21.1.0 *Sept 2024* * Fix incorrect results of `integerPowMod` when the base is 0 and the exponent is negative, and `integerRecipMod` when the modulus is zero ([#26017](https://gitlab.haskell.org/ghc/ghc/-/issues/26017)). * Fix bug where `naturalAndNot` was incorrectly truncating results ([CLC proposal #350](github.com/haskell/core-libraries-committee/issues/350))
src/Control/Exception/Backtrace.hs view
@@ -51,7 +51,7 @@ , getBacktraceMechanismState , setBacktraceMechanismState -- * Collecting backtraces- , Backtraces+ , Backtraces(..) , displayBacktraces , collectBacktraces ) where
src/System/Info.hs view
@@ -42,6 +42,8 @@ -- | The full version of 'compilerName' with which the program was compiled -- or is being interpreted. It includes the major, minor, revision and an additional -- identifier, generally in the form "<year><month><day>".+--+-- @since 4.15.0.0 fullCompilerVersion :: Version fullCompilerVersion = Version version [] where