deepseq-instances (empty) → 0.1.0.0
raw patch · 6 files changed
+93/−0 lines, 6 filesdep +arraydep +basedep +deepseqsetup-changed
Dependencies added: array, base, deepseq, stm
Files
- CHANGELOG.md +5/−0
- LICENSE +20/−0
- README.md +2/−0
- Setup.hs +2/−0
- deepseq-instances.cabal +34/−0
- src/Control/DeepSeq/Instances.hs +30/−0
+ CHANGELOG.md view
@@ -0,0 +1,5 @@+# Revision history for deepseq-instances++## 0.1.0.0 -- 2020-02-27++* Initial release.
+ LICENSE view
@@ -0,0 +1,20 @@+Copyright (c) 2020 Travis Whitaker++Permission is hereby granted, free of charge, to any person obtaining+a copy of this software and associated documentation files (the+"Software"), to deal in the Software without restriction, including+without limitation the rights to use, copy, modify, merge, publish,+distribute, sublicense, and/or sell copies of the Software, and to+permit persons to whom the Software is furnished to do so, subject to+the following conditions:++The above copyright notice and this permission notice shall be included+in all copies or substantial portions of the Software.++THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.+IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY+CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,+TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE+SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+ README.md view
@@ -0,0 +1,2 @@+# deepseq-instances+Candidate NFData Instances for Types in base
+ Setup.hs view
@@ -0,0 +1,2 @@+import Distribution.Simple+main = defaultMain
+ deepseq-instances.cabal view
@@ -0,0 +1,34 @@+cabal-version: 2.2++name: deepseq-instances+version: 0.1.0.0+synopsis: Candidate NFData Instances for Types in base+description: Candidate NFData Instances for Types in base+ This package provides correct-but-controversial NFData instances for types+ in base. See this GitHub pull request for more details:+ <https://github.com/haskell/deepseq/pull/50>+homepage: https://github.com/TravisWhitaker/deepseq-instances+bug-reports: https://github.com/TravisWhitaker/deepseq-instances/issues +license: MIT+license-file: LICENSE+author: Travis Whitaker+maintainer: pi.boy.travis@gmail.com+copyright: Travis Whitaker 2020+category: Control+extra-source-files: CHANGELOG.md, README.md+tested-with: GHC==8.8.2++source-repository head+ type: git+ location: https://github.com/TravisWhitaker/deepseq-instances.git++library+ exposed-modules: Control.DeepSeq.Instances+ build-depends: base ^>=4.13.0.0+ , array >= 0.4 && <0.6+ , deepseq >= 1.4.0.0+ , stm >= 2.5.0.0+ hs-source-dirs: src+ default-language: Haskell2010+ ghc-options: -Wall+ -Wno-orphans
+ src/Control/DeepSeq/Instances.hs view
@@ -0,0 +1,30 @@+module Control.DeepSeq.Instances where++import Control.Concurrent.STM.TVar++import Control.DeepSeq++import Data.Array.Unboxed++import Foreign.ForeignPtr++instance (NFData i, NFData e) => NFData (UArray i e) where+ rnf = rwhnf++instance (NFData i) => NFData1 (UArray i) where+ liftRnf _ = rwhnf++instance NFData2 UArray where+ liftRnf2 _ _ = rwhnf++instance NFData (TVar a) where+ rnf = rwhnf++instance NFData1 TVar where+ liftRnf _ = rwhnf++instance NFData (ForeignPtr a) where+ rnf = rwhnf++instance NFData1 ForeignPtr where+ liftRnf _ = rwhnf