packages feed

ListLike 3.1.0 → 3.1.1

raw patch · 2 files changed

+3/−3 lines, 2 filesPVP: major bump suggested

API removals or changes: PVP suggests a major version bump

API changes (from Hackage documentation)

- Data.ListLike: insertBy :: (ListLike full item, Ord item) => (item -> item -> Ordering) -> item -> full -> full
+ Data.ListLike: insertBy :: ListLike full item => (item -> item -> Ordering) -> item -> full -> full
- Data.ListLike: sortBy :: (ListLike full item, Ord item) => (item -> item -> Ordering) -> full -> full
+ Data.ListLike: sortBy :: ListLike full item => (item -> item -> Ordering) -> full -> full
- Data.ListLike.Base: insertBy :: (ListLike full item, Ord item) => (item -> item -> Ordering) -> item -> full -> full
+ Data.ListLike.Base: insertBy :: ListLike full item => (item -> item -> Ordering) -> item -> full -> full
- Data.ListLike.Base: sortBy :: (ListLike full item, Ord item) => (item -> item -> Ordering) -> full -> full
+ Data.ListLike.Base: sortBy :: ListLike full item => (item -> item -> Ordering) -> full -> full

Files

ListLike.cabal view
@@ -1,5 +1,5 @@ Name: ListLike-Version: 3.1.0+Version: 3.1.1 License: BSD3 Maintainer: John Lato <jwlato@gmail.com> Author: John Goerzen
src/Data/ListLike/Base.hs view
@@ -470,11 +470,11 @@                             xs = tail l      {- | Sort function taking a custom comparison function -}-    sortBy :: Ord item => (item -> item -> Ordering) -> full -> full +    sortBy :: (item -> item -> Ordering) -> full -> full      sortBy cmp = foldr (insertBy cmp) empty      {- | Like 'insert', but with a custom comparison function -}-    insertBy :: Ord item => (item -> item -> Ordering) -> item ->+    insertBy :: (item -> item -> Ordering) -> item ->                 full -> full      insertBy cmp x ys         | null ys = singleton x