HORIZON HASKELLDocslts/ghc-9.10.xc74966e2026-09-27Search names, modules, packages, or :: a typeCtrl K

GHC 9.10.3 · lts/ghc-9.10.x · c74966e · 2026-09-27

Modulecabal-install-solver-3.12.1.0Haskell2010

Distribution.Solver.Modular.PSQ

  • 1 type
  • 25 values
newtypenewtype PSQ k v
#

Constructors

Instances5Functor, Foldable, Traversable, Eq, Show
  • Functor (PSQ k)Defined in cabal-install-solver-3.12.1.0 · Distribution.Solver.Modular.PSQ
  • Foldable (PSQ k)Defined in cabal-install-solver-3.12.1.0 · Distribution.Solver.Modular.PSQ
  • Traversable (PSQ k)Defined in cabal-install-solver-3.12.1.0 · Distribution.Solver.Modular.PSQ
  • (Eq k, Eq v) => Eq (PSQ k v)Defined in cabal-install-solver-3.12.1.0 · Distribution.Solver.Modular.PSQ
  • (Show k, Show v) => Show (PSQ k v)Defined in cabal-install-solver-3.12.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.

valuepreferByKeys :: (k -> Bool) -> PSQ k a -> PSQ k a
#

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