Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Defines a type of list that containins two alternating element types.
- data AltList a b
- fromList :: [a] -> AltList a a
- toList :: AltList a a -> [a]
- first :: (a -> a') -> AltList a b -> AltList a' b
- second :: (b -> b') -> AltList a b -> AltList a b'
- bimap :: (a -> a') -> (b -> b') -> AltList a b -> AltList a' b'
- bisequence :: Applicative f => AltList (f a) (f b) -> f (AltList a b)
- bitraverse :: Applicative f => (a -> f c) -> (b -> f d) -> AltList a b -> f (AltList c d)
Documentation
List of elements of alternating element types.
Construction, deconstruction
Bifunctor
Bitraversable
bisequence :: Applicative f => AltList (f a) (f b) -> f (AltList a b) Source
Monomorphic bisequence.
bitraverse :: Applicative f => (a -> f c) -> (b -> f d) -> AltList a b -> f (AltList c d) Source
Monomorphic bitraverse.