single-tuple-0.1.1.0: a class for single tuple implementations
Data.Tuple.Single
Description
A class for 1-tuples.
class Single t where Source #
Methods
wrap :: a -> t a Source #
unwrap :: t a -> a Source #
Defined in Data.Tuple.Single
wrap :: a -> OneTuple a Source #
unwrap :: OneTuple a -> a Source #
wrap :: a -> Only a Source #
unwrap :: Only a -> a Source #
wrap :: a -> Identity a Source #
unwrap :: Identity a -> a Source #
pattern Single :: Single t => a -> t a Source #