summaryrefslogtreecommitdiff
path: root/libraries/base/changelog.md
diff options
context:
space:
mode:
authorHaskellMouse <rinat.stryungis@serokell.io>2020-06-19 21:51:59 +0300
committerHaskellMouse <rinat.stryungis@serokell.io>2020-10-13 13:05:49 +0300
commit8f4f5794eb3504bf2ca093dc5895742395fdbde9 (patch)
tree827d862d79d1ff20f4206e225aecb2ca7c1e882a /libraries/base/changelog.md
parent0a5f29185921cf2af908988ab3608602bcb40290 (diff)
downloadhaskell-8f4f5794eb3504bf2ca093dc5895742395fdbde9.tar.gz
Unification of Nat and Naturals
This commit removes the separate kind 'Nat' and enables promotion of type 'Natural' for using as type literal. It partially solves #10776 Now the following code will be successfully typechecked: data C = MkC Natural type CC = MkC 1 Before this change we had to create the separate type for promotion data C = MkC Natural data CP = MkCP Nat type CC = MkCP 1 But CP is uninhabited in terms. For backward compatibility type synonym `Nat` has been made: type Nat = Natural The user's documentation and tests have been updated. The haddock submodule also have been updated.
Diffstat (limited to 'libraries/base/changelog.md')
-rw-r--r--libraries/base/changelog.md10
1 files changed, 9 insertions, 1 deletions
diff --git a/libraries/base/changelog.md b/libraries/base/changelog.md
index e8ceab903b..79e47093cc 100644
--- a/libraries/base/changelog.md
+++ b/libraries/base/changelog.md
@@ -1,5 +1,13 @@
# Changelog for [`base` package](http://hackage.haskell.org/package/base)
+## 4.16.0.0 *TBA*
+
+ * Make it possible to promote `Natural`s and remove the separate `Nat` kind.
+ For backwards compatibility, `Nat` is now a type synonym for `Natural`.
+ As a consequence, one must enable `TypeSynonymInstances`
+ in order to define instances for `Nat`. Also, different instances for `Nat` and `Natural`
+ won't typecheck anymore.
+
## 4.15.0.0 *TBA*
* `openFile` now calls the `open` system call with an `interruptible` FFI
@@ -35,7 +43,7 @@
* `catMaybes` is now implemented using `mapMaybe`, so that it is both a "good
consumer" and "good producer" for list-fusion (#18574)
-
+
## 4.14.0.0 *TBA*
* Bundled with GHC 8.10.1