Safe Haskell | Safe |
---|---|
Language | Haskell98 |
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
Documentation
OneTuple is the singleton tuple data type.
OneTuple a | singleton tuple constructor |
Monad OneTuple Source # | |
Functor OneTuple Source # | |
MonadFix OneTuple Source # | |
Applicative OneTuple Source # | |
Foldable OneTuple Source # | |
Traversable OneTuple Source # | |
Bounded a => Bounded (OneTuple a) Source # | |
Enum a => Enum (OneTuple a) Source # | |
Eq a => Eq (OneTuple a) Source # | |
Ord a => Ord (OneTuple a) Source # | |
Read a => Read (OneTuple a) Source # | |
Show a => Show (OneTuple a) Source # | |
Ix a => Ix (OneTuple a) Source # | |
Semigroup a => Semigroup (OneTuple a) Source # | |
Monoid a => Monoid (OneTuple a) Source # | |