OneTuple-0.2.0: Singleton TupleSource codeContentsIndex
Data.Tuple.OneTuple
Description

OneTuple fills the tuple gap with a singleton tuple.

OneTuple does not support the usual parenthesized tuple syntax.

OneTuple

  • has the expected laziness properties
  • can be pattern-matched
  • ships with instances for several standard type classes, including all those supported by H98-standard tuples
  • requires no language extensions, except for hierarchical modules
Synopsis
data OneTuple a = OneTuple a
only :: OneTuple a -> a
Documentation
data OneTuple a Source
OneTuple is the singleton tuple data type.
Constructors
OneTuple asingleton tuple constructor
show/hide Instances
onlySource
::
=> OneTuple atakes a singleton tuple argument
-> areturns the only element in the tuple
The only function extracts the OneTuple's only member. (Compare to fst and snd.)
Produced by Haddock version 2.3.0