rope-0.1: Tools for manipulating annotated ropes of bytestrings

Data.Rope.Util.Coproduct

Documentation

data a :+: b Source

Constructors

Left' !a 
Right' !b 

data a :+ b Source

Constructors

Inl !a 
Inr b 

Instances

class Bifunctor s => Coproduct s whereSource

Methods

left :: a -> s a bSource

right :: b -> s a bSource

(|||) :: (a -> c) -> (b -> c) -> s a b -> cSource

codiag :: s a a -> aSource

counzip :: (Coproduct s, Coproduct s', Functor f) => s (f a) (f b) -> f (s' a b)Source