From 6243bba73d14cbee4219a16d45f57d1b254a6456 Mon Sep 17 00:00:00 2001 From: Sebastian Graf Date: Sat, 5 May 2018 13:30:32 -0400 Subject: Add 'addWordC#' PrimOp This is mostly for congruence with 'subWordC#' and '{add,sub}IntC#'. I found 'plusWord2#' while implementing this, which both lacks documentation and has a slightly different specification than 'addWordC#', which means the generic implementation is unnecessarily complex. While I was at it, I also added lacking meta-information on PrimOps and refactored 'subWordC#'s generic implementation to be branchless. Reviewers: bgamari, simonmar, jrtc27, dfeuer Reviewed By: bgamari, dfeuer Subscribers: dfeuer, thomie, carter Differential Revision: https://phabricator.haskell.org/D4592 --- libraries/ghc-prim/changelog.md | 7 +++++++ libraries/ghc-prim/ghc-prim.cabal | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) (limited to 'libraries/ghc-prim') diff --git a/libraries/ghc-prim/changelog.md b/libraries/ghc-prim/changelog.md index 6248b2f4e1..3c9d9907ff 100644 --- a/libraries/ghc-prim/changelog.md +++ b/libraries/ghc-prim/changelog.md @@ -1,3 +1,10 @@ +## 0.5.2.1 (edit as necessary) + +- Shipped with GHC 8.6.1 + +- Added to `GHC.Prim`: + addWordC# :: Word# -> Word# -> (# Word#, Int# #) + ## 0.5.2.0 - Shipped with GHC 8.4.1 diff --git a/libraries/ghc-prim/ghc-prim.cabal b/libraries/ghc-prim/ghc-prim.cabal index f395c9faac..e672301831 100644 --- a/libraries/ghc-prim/ghc-prim.cabal +++ b/libraries/ghc-prim/ghc-prim.cabal @@ -1,6 +1,6 @@ cabal-version: 2.1 name: ghc-prim -version: 0.5.2.0 +version: 0.5.2.1 -- NOTE: Don't forget to update ./changelog.md license: BSD-3-Clause license-file: LICENSE -- cgit v1.2.1