single-tuple-0.1.1.0: a class for single tuple implementations

CopyrightKazuki Okamoto
Licensesee LICENSE
Maintainerkazuki.okamoto@kakkun61.com
Stabilityexperimental
PortabilityGHC
Safe HaskellSafe
LanguageHaskell2010
Extensions
  • ViewPatterns
  • PatternSynonyms

Data.Tuple.Single

Description

A class for 1-tuples.

Documentation

class Single t where Source #

Methods

wrap :: a -> t a Source #

unwrap :: t a -> a Source #

Instances
Single OneTuple Source # 
Instance details

Defined in Data.Tuple.Single

Methods

wrap :: a -> OneTuple a Source #

unwrap :: OneTuple a -> a Source #

Single Only Source # 
Instance details

Defined in Data.Tuple.Single

Methods

wrap :: a -> Only a Source #

unwrap :: Only a -> a Source #

Single Identity Source # 
Instance details

Defined in Data.Tuple.Single

Methods

wrap :: a -> Identity a Source #

unwrap :: Identity a -> a Source #

pattern Single :: Single t => a -> t a Source #