packages feed

hashable-extras 0.1.0.1 → 0.1.1

raw patch · 4 files changed

+13/−1 lines, 4 filesPVP ok

version bump matches the API change (PVP)

API changes (from Hackage documentation)

Files

CHANGELOG.markdown view
@@ -1,3 +1,7 @@+0.1.1+-----+* Marked this package `Trustworthy`+ 0.1.0.1 ------- * Bumped dependency bounds for `generic-deriving`.
+ HLint.hs view
@@ -0,0 +1,1 @@+import "hint" HLint.Default
hashable-extras.cabal view
@@ -1,6 +1,6 @@ name:          hashable-extras category:      Data, Hash-version:       0.1.0.1+version:       0.1.1 license:       BSD3 cabal-version: >= 1.8 license-file:  LICENSE@@ -23,6 +23,7 @@   .ghci   .gitignore   .vim.custom+  HLint.hs   travis/cabal-apt-install   travis/config   AUTHORS.markdown
src/Data/Hashable/Extras.hs view
@@ -1,4 +1,6 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE DefaultSignatures #-}+{-# LANGUAGE Trustworthy #-} -------------------------------------------------------------------- -- | -- Copyright :  (c) Edward Kmett 2013@@ -39,9 +41,11 @@  class Hashable1 t where   hashWithSalt1 :: Hashable a => Int -> t a -> Int+#ifndef HLINT   default hashWithSalt1 :: (Hashable a, Hashable (t a)) => Int -> t a -> Int   hashWithSalt1 = hashWithSalt1   {-# INLINE hashWithSalt1 #-}+#endif    hash1 :: Hashable a => t a -> Int   hash1 = hashWithSalt1 salt@@ -63,9 +67,11 @@  class Hashable2 t where   hashWithSalt2 :: (Hashable a, Hashable b) => Int -> t a b -> Int+#ifndef HLINT   default hashWithSalt2 :: (Hashable a, Hashable b, Hashable (t a b)) => Int -> t a b -> Int   hashWithSalt2 = hashWithSalt   {-# INLINE hashWithSalt2 #-}+#endif    hash2 :: (Hashable a, Hashable b) => t a b -> Int   hash2 = hashWithSalt2 salt