syntactic-3.6.1: Generic representation and manipulation of abstract syntax

Safe HaskellNone
LanguageHaskell2010

Data.NestTuple

Description

Conversion between tuples and nested pairs

Synopsis

Documentation

class Nestable tup where Source

Tuples that can be converted to/from nested pairs

Associated Types

type Nested tup Source

Representation as nested pairs

Methods

nest :: tup -> Nested tup Source

Convert to nested pairs

unnest :: Nested tup -> tup Source

Convert from nested pairs

Instances

Nestable (a, b) Source 
Nestable (a, b, c) Source 
Nestable (a, b, c, d) Source 
Nestable (a, b, c, d, e) Source 
Nestable (a, b, c, d, e, f) Source 
Nestable (a, b, c, d, e, f, g) Source 
Nestable (a, b, c, d, e, f, g, h) Source 
Nestable (a, b, c, d, e, f, g, h, i) Source 
Nestable (a, b, c, d, e, f, g, h, i, j) Source 
Nestable (a, b, c, d, e, f, g, h, i, j, k) Source 
Nestable (a, b, c, d, e, f, g, h, i, j, k, l) Source 
Nestable (a, b, c, d, e, f, g, h, i, j, k, l, m) Source 
Nestable (a, b, c, d, e, f, g, h, i, j, k, l, m, n) Source 
Nestable (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o) Source