HList-0.2.3: Heterogeneous lists

Data.HList.Label1

Description

The HList library

(C) 2004-2006, Oleg Kiselyov, Ralf Laemmel, Keean Schupke

A model of label as needed for extensible records.

Record labels are simply type-level naturals. This models is as simple and as portable as it could be.

Synopsis

Documentation

newtype Label x Source

Labels are type-level naturals

Constructors

Label x 

Instances

Show x => Show (Label x) 
Show n => ShowLabel (Label n)

Show label

HEq n n' b => HEq (Label n) (Label n') b

Equality on labels

label :: HNat n => n -> Label nSource

Public constructors for labels

firstLabel :: Label HZeroSource

Construct the first label

nextLabel :: HNat t => Label t -> Label (HSucc t)Source

Construct the next label