basement-0.0.15: Foundation scrap box of array & string
License BSD-style
Maintainer Nicolas Di Prima <nicolas@primetype.co.uk>
Stability stable
Portability portable
Safe Haskell None
Language Haskell2010

Basement.These

Description

These a b , sum type to represent either a or b or both.

Synopsis

Documentation

data These a b Source #

Either a or b or both.

Constructors

This a
That b
These a b

Instances

Instances details
Bifunctor These Source #
Instance details

Defined in Basement.These

Methods

bimap :: (a -> b) -> (c -> d) -> These a c -> These b d Source #

first :: (a -> b) -> These a c -> These b c Source #

second :: (b -> c) -> These a b -> These a c Source #

Functor ( These a) Source #
Instance details

Defined in Basement.These

Methods

fmap :: (a0 -> b) -> These a a0 -> These a b Source #

(<$) :: a0 -> These a b -> These a a0 Source #

( Eq a, Eq b) => Eq ( These a b) Source #
Instance details

Defined in Basement.These

( Ord a, Ord b) => Ord ( These a b) Source #
Instance details

Defined in Basement.These

( Show a, Show b) => Show ( These a b) Source #
Instance details

Defined in Basement.These

( NormalForm a, NormalForm b) => NormalForm ( These a b) Source #
Instance details

Defined in Basement.These

From ( Either a b) ( These a b) Source #
Instance details

Defined in Basement.From