[commit: packages/deepseq] master: Add NFData instance for Foreign.C.Types.CBool (a57a114)
git at git.haskell.org
git at git.haskell.org
Wed Jul 19 21:59:42 UTC 2017
Repository : ssh://git@git.haskell.org/deepseq
On branch : master
Link : http://git.haskell.org/packages/deepseq.git/commitdiff/a57a114e0b6c26f099bb3a61480d8a44ac5c3703
>---------------------------------------------------------------
commit a57a114e0b6c26f099bb3a61480d8a44ac5c3703
Author: Ryan Scott <ryan.gl.scott at gmail.com>
Date: Sat Apr 8 14:00:08 2017 -0400
Add NFData instance for Foreign.C.Types.CBool
>---------------------------------------------------------------
a57a114e0b6c26f099bb3a61480d8a44ac5c3703
Control/DeepSeq.hs | 5 +++++
changelog.md | 1 +
2 files changed, 6 insertions(+)
diff --git a/Control/DeepSeq.hs b/Control/DeepSeq.hs
index 4c5505e..41227c0 100644
--- a/Control/DeepSeq.hs
+++ b/Control/DeepSeq.hs
@@ -757,6 +757,11 @@ instance NFData CFpos where rnf = rwhnf
-- |@since 1.4.0.0
instance NFData CJmpBuf where rnf = rwhnf
+#if MIN_VERSION_base(4,10,0)
+-- | @since 1.4.3.0
+instance NFData CBool where rnf = rwhnf
+#endif
+
----------------------------------------------------------------------------
-- System.Exit
diff --git a/changelog.md b/changelog.md
index 8f95f22..c939cdb 100644
--- a/changelog.md
+++ b/changelog.md
@@ -15,6 +15,7 @@
* Add `NFData1` and `NFData2` type classes ([#8](https://github.com/haskell/deepseq/issues/8))
* Add `NFData1` and `NFData` instances for `Data.Functor.{Compose,Sum,Product}`
([#30](https://github.com/haskell/deepseq/pull/30))
+ * Add `NFData` instance for `Foreign.C.Types.CBool`
## 1.4.2.0 *Apr 2016*
More information about the ghc-commits
mailing list