intern 0.9.3 → 0.9.4
raw patch · 4 files changed
+10/−3 lines, 4 filesdep ~bytestringdep ~hashabledep ~text
Dependency ranges changed: bytestring, hashable, text
Files
- CHANGELOG.markdown +4/−0
- Data/Interned/IntSet.hs +3/−0
- README.markdown +1/−1
- intern.cabal +2/−2
CHANGELOG.markdown view
@@ -1,3 +1,7 @@+0.9.4 [2021.02.17]+------------------+* Export `identity` from `Data.Interned.IntSet`.+ 0.9.3 [2020.09.30] ------------------ * Add `Hashable` instances for `InternedString`, `InternedByteString`,
Data/Interned/IntSet.hs view
@@ -49,6 +49,8 @@ -- * Set type IntSet -- instance Eq,Show + , identity+ -- * Operators , (\\) @@ -186,6 +188,7 @@ bin_ :: Prefix -> Mask -> IntSet -> IntSet -> IntSet bin_ p m l r = intern (UBin p m l r) +-- | A unique integer ID associated with each interned set. identity :: IntSet -> Id identity Nil = 0 identity (Tip i _) = i
README.markdown view
@@ -1,7 +1,7 @@ intern ====== -[](https://hackage.haskell.org/package/intern) [](http://travis-ci.org/ekmett/intern)+[](https://hackage.haskell.org/package/intern) [](https://github.com/ekmett/intern/actions?query=workflow%3AHaskell-CI) Efficient hash-consing for arbitrary data types.
intern.cabal view
@@ -1,6 +1,6 @@ name: intern category: Data, Data Structures-version: 0.9.3+version: 0.9.4 license: BSD3 cabal-version: >= 1.10 license-file: LICENSE@@ -35,7 +35,7 @@ library build-depends: base >= 4 && < 5,- bytestring >= 0.9 && < 0.11,+ bytestring >= 0.9 && < 0.12, text >= 0.11 && < 1.3, hashable >= 1.1 && < 1.4, unordered-containers >= 0.2.1 && < 0.3,