list-extras 0.4.1.6 → 0.4.1.11
raw patch · 4 files changed
+47/−25 lines, 4 filesdep ~basePVP: major bump suggested
API removals or changes: PVP suggests a major version bump
Dependency ranges changed: base
API changes (from Hackage documentation)
- Prelude.Listless: class Bounded a
+ Prelude.Listless: class () => Bounded a
- Prelude.Listless: class Enum a
+ Prelude.Listless: class () => Enum a
- Prelude.Listless: class Eq a
+ Prelude.Listless: class () => Eq a
- Prelude.Listless: class Functor (f :: Type -> Type)
+ Prelude.Listless: class () => Functor (f :: Type -> Type)
- Prelude.Listless: class Num a
+ Prelude.Listless: class () => Num a
- Prelude.Listless: class Read a
+ Prelude.Listless: class () => Read a
- Prelude.Listless: class Show a
+ Prelude.Listless: class () => Show a
- Prelude.Listless: data Bool
+ Prelude.Listless: data () => Bool
- Prelude.Listless: data Char
+ Prelude.Listless: data () => Char
- Prelude.Listless: data Double
+ Prelude.Listless: data () => Double
- Prelude.Listless: data Either a b
+ Prelude.Listless: data () => Either a b
- Prelude.Listless: data Float
+ Prelude.Listless: data () => Float
- Prelude.Listless: data IO a
+ Prelude.Listless: data () => IO a
- Prelude.Listless: data Int
+ Prelude.Listless: data () => Int
- Prelude.Listless: data Integer
+ Prelude.Listless: data () => Integer
- Prelude.Listless: data Maybe a
+ Prelude.Listless: data () => Maybe a
- Prelude.Listless: data Ordering
+ Prelude.Listless: data () => Ordering
- Prelude.Listless: infix 4 <
+ Prelude.Listless: infix 4 >
- Prelude.Listless: seq :: forall (r :: RuntimeRep) a (b :: TYPE r). a -> b -> b
+ Prelude.Listless: seq :: forall {r :: RuntimeRep} a (b :: TYPE r). a -> b -> b
Files
- CHANGELOG +18/−0
- README.md +1/−2
- list-extras.cabal +22/−20
- src/Data/List/Extras/Argmax.hs +6/−3
CHANGELOG view
@@ -1,3 +1,21 @@+0.4.1.11 (2026-02-28):+ - Added `Tested-With: GHC == 9.12, 9.14` (didn't actually need to+ nudge the upper bound on 'base', because it's already lenient)+ - Silenced GHC 9.10 warnings about importing 'Data.List'+0.4.1.10 (2024-08-29):+ - Added `Tested-With: GHC == 9.8, 9.10` (didn't actually need to+ nudge the upper bound on 'base', because it's already lenient)+ - Removed the base4 flag, since we no longer use CI to verify+ that such ancient versions still build cleanly.+0.4.1.9 (2023-03-19):+ - Added `Tested-With: GHC == 9.6.1` (didn't actually need to+ nudge the upper bound on 'base', because it's already lenient)+0.4.1.8 (2022-08-28):+ - Added `Tested-With: GHC == 9.4.1` (didn't actually need to+ nudge the upper bound on 'base', because it's already lenient)+0.4.1.7 (2021-11-02):+ - Added `Tested-With: GHC == 9.2.1` (didn't actually need to+ nudge the upper bound on 'base', because it's already lenient) 0.4.1.6 (2021-10-17): - Updating maintainer's email, url, etc - Set up GithubActions for CI.
README.md view
@@ -1,8 +1,7 @@ list-extras ===========+[](https://github.com/wrengr/list-extras/actions?query=workflow%3Aci+-event%3Apull_request) [](https://hackage.haskell.org/package/list-extras)-[](https://github.com/wrengr/list-extras/actions?query=workflow%3Aci)-[](http://packdeps.haskellers.com/specific?package=list-extras) The list-extras package provides a few common not-so-common functions for lists.
list-extras.cabal view
@@ -1,20 +1,25 @@+Cabal-Version: 2.2+-- Cabal >=2.2 is required for:+-- <https://cabal.readthedocs.io/en/latest/cabal-package.html#common-stanzas>+-- Since 2.1, the Cabal-Version must be the absolutely first thing+-- in the file, even before comments. Also, no longer uses ">=".+-- <https://github.com/haskell/cabal/issues/4899>+ ------------------------------------------------------------------- wren gayle romano <wren@cpan.org> ~ 2021.10.17+-- wren gayle romano <wren@cpan.org> ~ 2026-02-26 ---------------------------------------------------------------- --- Cabal >=1.10 is required by Hackage.-Cabal-Version: >= 1.10-Build-Type: Simple- Name: list-extras-Version: 0.4.1.6+Version: 0.4.1.11+Build-Type: Simple Stability: stable Homepage: https://wrengr.org/software/hackage.html Bug-Reports: https://github.com/wrengr/list-extras/issues Author: wren gayle romano Maintainer: wren@cpan.org-Copyright: Copyright (c) 2007–2021 wren gayle romano-License: BSD3+Copyright: 2007–2026 wren romano+-- Cabal-2.2 requires us to say "BSD-3-Clause" not "BSD3"+License: BSD-3-Clause License-File: LICENSE Category: List@@ -42,18 +47,20 @@ GHC ==8.6.5, GHC ==8.8.4, GHC ==8.10.3,- GHC ==9.0.1+ GHC ==9.0.1,+ GHC ==9.2.4,+ GHC ==9.4.8,+ GHC ==9.6.5,+ GHC ==9.8.2,+ GHC ==9.10.1,+ GHC ==9.12.1,+ GHC ==9.14.1 Source-Repository head Type: git Location: https://github.com/wrengr/list-extras.git -----------------------------------------------------------------Flag base4- Description: base-4.0 deprecated Prelude which is imported qualified- Default: True------------------------------------------------------------------ Library Default-Language: Haskell2010 Hs-Source-Dirs: src@@ -64,12 +71,7 @@ , Data.List.Extras.Argmax , Data.List.Extras.LazyLength , Data.List.Extras.Pair- if flag(base4)- -- TODO: What else do we need to do?- Build-Depends: base >= 4 && < 5- else- -- TODO: What else do we need to do?- Build-Depends: base < 4+ Build-Depends: base >= 4 && < 5 -- Build-Depends: data-or ----------------------------------------------------------------
src/Data/List/Extras/Argmax.hs view
@@ -1,13 +1,14 @@ {-# OPTIONS_GHC -Wall -fwarn-tabs #-}+{-# LANGUAGE CPP #-} ------------------------------------------------------------------- ~ 2021.10.17+-- ~ 2026-02-28 -- | -- Module : Data.List.Extras.Argmax--- Copyright : Copyright (c) 2007--2021 wren gayle romano+-- Copyright : Copyright (c) 2007--2026 wren gayle romano -- License : BSD3 -- Maintainer : wren@cpan.org -- Stability : experimental--- Portability : Haskell98+-- Portability : Haskell98 (+CPP) -- -- This module provides variants of the 'maximum' and 'minimum' -- functions which return the elements for which some function is@@ -33,7 +34,9 @@ ) where -- argmaxM :: (Monad m, Ord b) => (a -> m b) -> [a] -> m (Maybe a) +#if __GLASGOW_HASKELL__ < 910 import Data.List (foldl')+#endif ---------------------------------------------------------------- ----------------------------------------------------------------