UVMHS.Core.Data.Choice
Contents
elimChoice :: (a -> c) -> (b -> c) -> (a ∨ b) -> c Source #
mapChoice :: (a₁ -> a₂) -> (b₁ -> b₂) -> (a₁ ∨ b₁) -> a₂ ∨ b₂ Source #
mapInl :: (a₁ -> a₂) -> (a₁ ∨ b) -> a₂ ∨ b Source #
mapInr :: (b₁ -> b₂) -> (a ∨ b₁) -> a ∨ b₂ Source #
mapMChoice :: Monad m => (a -> m a') -> (b -> m b') -> (a ∨ b) -> m (a' ∨ b') Source #
mapMInl :: Monad m => (a -> m a') -> (a ∨ b) -> m (a' ∨ b) Source #
mapMInr :: Monad m => (b -> m b') -> (a ∨ b) -> m (a ∨ b') Source #
Methods
(≫=) :: (a ∨ a0) -> (a0 -> a ∨ b) -> a ∨ b Source #
map :: (a0 -> b) -> (a ∨ a0) -> a ∨ b Source #
mapM :: Monad m => (a0 -> m b) -> (a ∨ a0) -> m (a ∨ b) Source #
return :: a0 -> a ∨ a0 Source #
(⧺) :: (a ∨ b) -> (a ∨ b) -> a ∨ b Source #
null :: a ∨ b Source #