Releases: fehrenbach/purescript-unordered-collections
v3.1.0: Add `any` function (#34)
Add any
- a specialized version of Data.Foldable.any
. Thanks @flip111!
v3.0.1: Remove 'new' operator when invoking Just
Do not call Just
with new
. This was a leftover from when we did even dodgier things with Just and Nothing than we do now. Thanks @aranchelk for cleaning it up! This may allow unordered-collections to be used with purescript-backend-optimizer, but I haven't personally tried it.
v3.0.0 for PureScript 0.15
Switch to PureScript 0.15.
Add (back) Semigroup instance for HashMap. This is the same instance that we already have on the SemigroupHashMap newtype, which will be removed in the future.
Fix Pursuit source links
Big thanks to @mattdiamond for reporting and diagnosing the issue with broken source links from Pursuit.
No code changes.
Fix upsert
Big thanks to @dohse for both finding and fixing the problem.
Safe.Coerce
Adds role declaration to allow coercing HashMap k v
to Hashmap k w
, if v
is coercible to w
.
Note that HashMap j v
is not safely coercible to HashMap k v
, because the Hashable instances on j
and k
might disagree.
PureScript 0.14 and Semigroup removal
-
Misc updates for PureScript 0.14
-
Remove left-biased Semigroup instance from HashMap
If you really need a Semigroup instance right now, use SemigroupHashMap which has an unbiased Semigroup instance that defers to the Semigroup instance of the value type. To recover the left-biased behaviour, use
SemigroupHashMap k (First v)
in place ofHashMap k v
.
If you don't need a Semigroup instance right now, don't bother. A future version will add the unbiased Semigroup instance to HashMap and remove SemigroupHashMap again.
Apply and Bind for HashMap
Thanks to @rhendric