packages feed

Set 0.0.0.0 → 0.0.1.0

raw patch · 2 files changed

+21/−1 lines, 2 filesPVP ok

version bump matches the API change (PVP)

API changes (from Hackage documentation)

+ Data.Set.Class: instance Data.Set.Class.Set Data.IntSet.Internal.IntSet

Files

Set.cabal view
@@ -1,6 +1,6 @@ cabal-version:       2.2 name:                Set-version:             0.0.0.0+version:             0.0.1.0 synopsis:            See README for more info description:         See README for more info homepage:            https://github.com/strake/Set.hs
src/Data/Set/Class.hs view
@@ -9,6 +9,7 @@ import qualified Data.Maybe as List (catMaybes, mapMaybe) import Data.Monoid import qualified Data.Set as C+import qualified Data.IntSet as I import Util  class Set set where@@ -70,3 +71,22 @@     intersection = C.intersection     difference = C.difference     (⊆) = C.isSubsetOf++instance Set I.IntSet where+    type Elem I.IntSet = Int+    empty = I.empty+    foldr = I.foldr+    foldl = I.foldl+    toList = I.toList+    length = I.size+    null = I.null+    filter = I.filter+    member = I.member+    fromList = I.fromList+    insert = I.insert+    delete = I.delete+    singleton = I.singleton+    union = I.union+    intersection = I.intersection+    difference = I.difference+    (⊆) = I.isSubsetOf