summaryrefslogtreecommitdiff
path: root/libraries/base/changelog.md
diff options
context:
space:
mode:
authorOleg Grenrus <oleg.grenrus@iki.fi>2021-05-26 05:03:52 +0300
committerMarge Bot <ben+marge-bot@smart-cactus.org>2021-12-12 12:52:18 -0500
commit31bf380f3925d72a3369978d28d02aaae31f75ef (patch)
tree38afd6818f3f4661c7ec2f560bd249b3408e021a /libraries/base/changelog.md
parent93783e6a8765e1410d0a14fd5249a995c6759308 (diff)
downloadhaskell-31bf380f3925d72a3369978d28d02aaae31f75ef.tar.gz
Use HasCallStack and error in GHC.List and .NonEmpty
In addition to providing stack traces, the scary HasCallStack will hopefully make people think whether they want to use these functions, i.e. act as a documentation hint that something weird might happen. A single metric increased, which doesn't visibly use any method with `HasCallStack`. ------------------------- Metric Decrease: T9630 Metric Decrease: T19695 T9630 -------------------------
Diffstat (limited to 'libraries/base/changelog.md')
-rw-r--r--libraries/base/changelog.md4
1 files changed, 4 insertions, 0 deletions
diff --git a/libraries/base/changelog.md b/libraries/base/changelog.md
index 52f6a56d0c..6c9bd23184 100644
--- a/libraries/base/changelog.md
+++ b/libraries/base/changelog.md
@@ -29,6 +29,10 @@
* `GHC.Exts` now re-exports `Multiplicity` and `MultMul`.
+ * A large number of partial functions in `Data.List` and `Data.List.NonEmpty` now
+ have an HasCallStack constraint. Hopefully providing better error messages in case
+ they are used in unexpected ways.
+
## 4.16.0.0 *Nov 2021*
* The unary tuple type, `Solo`, is now exported by `Data.Tuple`.