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

Modulesemialign-1.3.1Haskell2010

Data.Crosswalk

  • 2 classes
  • Packagesemialign-1.3.1
  • Exports2
  • LanguageHaskell2010
  • LicenceBSD-3-Clause
  • SourceCrosswalk.hs

Crosswalk

1 declaration
classclass (Functor t, Foldable t) => Crosswalk (t :: Type -> Type) where
#

Foldable functors supporting traversal through an alignable functor.

Minimal definition: crosswalk or sequenceL.

Laws:

crosswalk (const nil) = const nil
crosswalk f = sequenceL . fmap f

Methods

Instances8Crosswalk, …

Bicrosswalk

1 declaration
classclass (Bifunctor t, Bifoldable t) => Bicrosswalk (t :: Type -> Type -> Type) where
#

Bifoldable bifunctors supporting traversal through an alignable functor.

Minimal definition: bicrosswalk or bisequenceL.

Laws:

bicrosswalk (const empty) (const empty) = const empty
bicrosswalk f g = bisequenceL . bimap f g

Methods

Instances2Bicrosswalk