HORIZON HASKELLDocslts/ghc-9.14.x6d5fdfd2026-10-12Search packagesCtrl K
Theme: |

GHC 9.14.1 · lts/ghc-9.14.x · 6d5fdfd · 2026-10-12

Modulesemialign-1.4Haskell2010

Data.Crosswalk

Contents
  1. Crosswalk
  2. Bicrosswalk
Synopsis
  • Packagesemialign-1.4
  • Exports2
  • LanguageHaskell2010
  • LicenceBSD-3-Clause
  • SourceCrosswalk.hs

Crosswalk

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

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