data-clist 0.0.2 → 0.0.3
raw patch · 2 files changed
+5/−3 lines, 2 filesPVP ok
version bump matches the API change (PVP)
API changes (from Hackage documentation)
Files
- data-clist.cabal +2/−2
- src/Data/CircularList.hs +3/−1
data-clist.cabal view
@@ -5,7 +5,7 @@ Given that the ring terminiology clashes with certain mathematical branches, we're using the term CList or CircularList instead.-Version: 0.0.2+Version: 0.0.3 License: BSD3 License-File: LICENSE Author: John Van Enk <vanenkj@gmail.com>@@ -14,7 +14,7 @@ Category: Data Structures Cabal-Version: >= 1.6 Build-Type: Simple-Package-URL: http://github.com/sw17ch/data-ring+Package-URL: http://github.com/sw17ch/data-clist Library Build-Depends: base >= 4 && < 5,
src/Data/CircularList.hs view
@@ -70,7 +70,6 @@ -- | A functional ring type. data CList a = Empty | CList [a] a [a]- deriving (Eq) {- Creating CLists -} @@ -200,6 +199,9 @@ show cl = case balance cl of (CList l f r) -> show (reverse l,f,r) Empty -> "Empty"++instance (Eq a) => Eq (CList a) where+ a == b = (toList a) == (toList b) instance Arbitrary a => Arbitrary (CList a) where arbitrary = frequency [(1, return Empty), (10, arbCList)]