summaryrefslogtreecommitdiff
path: root/libraries
diff options
context:
space:
mode:
authorsheaf <sam.derbyshire@gmail.com>2021-11-24 14:21:49 +0100
committerMarge Bot <ben+marge-bot@smart-cactus.org>2021-11-25 01:07:04 -0500
commitd530c46c89acd85a5cb0d1d1dc87fd1960f654b0 (patch)
tree0346e5024bea7a2f5b6d5d61672ff9213c2f2069 /libraries
parentc18a51f035622d53bf96b950ec0129b210ab758d (diff)
downloadhaskell-d530c46c89acd85a5cb0d1d1dc87fd1960f654b0.tar.gz
Add Data.Bits changes to base 4.16 changelog
Several additions since 4.15 had not been recorded in the changelog: - newtypes And, Ior, Xor and Iff, - oneBits - symbolic synonyms `.^.`, `.>>.`, `!>>.`, `.<<.` and `!<<.`. Fixes #20608.
Diffstat (limited to 'libraries')
-rw-r--r--libraries/base/changelog.md16
1 files changed, 16 insertions, 0 deletions
diff --git a/libraries/base/changelog.md b/libraries/base/changelog.md
index d75c8b9dbf..e1a21989ff 100644
--- a/libraries/base/changelog.md
+++ b/libraries/base/changelog.md
@@ -19,6 +19,14 @@
* `returnA` is defined as `Control.Category.id` instead of `arr id`.
+ * Added symbolic synonyms for `xor` and shift operators to `Data.Bits`:
+
+ - `.^.` (`xor`),
+ - `.>>.` and `!>>.` (`shiftR` and `unsafeShiftR`),
+ - `.<<.` and `!<<.` (`shiftL` and `unsafeShiftL`).
+
+ These new operators have the same fixity as the originals.
+
## 4.16.0.0 *Nov 2021*
* The unary tuple type, `Solo`, is now exported by `Data.Tuple`.
@@ -81,6 +89,14 @@
* Comparison constraints in `Data.Type.Ord` (e.g. `<=`) now use the new
`GHC.TypeError.Assert` type family instead of type equality with `~`.
+ * Additions to `Data.Bits`:
+
+ - Newtypes `And`, `Ior`, `Xor` and `Iff` which wrap their argument,
+ and whose `Semigroup` instances are defined using `(.&.)`, `(.|.)`, `xor`
+ and ```\x y -> complement (x `xor` y)```, respectively.
+
+ - `oneBits :: FiniteBits a => a`, `oneBits = complement zeroBits`.
+
## 4.15.0.0 *TBA*
* `openFile` now calls the `open` system call with an `interruptible` FFI