HORIZON HASKELLDocslts/ghc-10.0.x2b276322026-10-31Search packagesCtrl K
Theme: |

GHC 10.0.0.20260917 · lts/ghc-10.0.x · 2b27632 · 2026-10-31

Modulecabal-install-solver-3.18.1.0Haskell2010

Distribution.Solver.Modular.PSQ

Synopsis
newtypenewtype PSQ k v
#

Constructors

Instances5Functor, Foldable, Traversable, Eq, Show
  • Functor (PSQ k)Defined in cabal-install-solver-3.18.1.0 · Distribution.Solver.Modular.PSQ
  • Foldable (PSQ k)Defined in cabal-install-solver-3.18.1.0 · Distribution.Solver.Modular.PSQ
  • Traversable (PSQ k)Defined in cabal-install-solver-3.18.1.0 · Distribution.Solver.Modular.PSQ
  • (Eq k, Eq v) => Eq (PSQ k v)Defined in cabal-install-solver-3.18.1.0 · Distribution.Solver.Modular.PSQ
  • (Show k, Show v) => Show (PSQ k v)Defined in cabal-install-solver-3.18.1.0 · Distribution.Solver.Modular.PSQ
valuefilterIfAny :: (a -> Bool) -> PSQ k a -> PSQ k a

Will partition the list according to the predicate. If there is any element that satisfies the predicate, then only the elements satisfying the predicate are returned. Otherwise, the rest is returned.

valuemap :: (v1 -> v2) -> PSQ k v1 -> PSQ k v2
#
valueprefer :: (a -> Bool) -> PSQ k a -> PSQ k a

Sort the list so that values satisfying the predicate are first.