HList-0.2.3: Heterogeneous lists

Data.HList.HZip

Description

The HList library

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

Zipping and unzipping for (conceptually) lists of pairs.

Synopsis

Documentation

class HZip x y l | x y -> l, l -> x y whereSource

Zip and unzip

Methods

hZip :: x -> y -> lSource

hUnzip :: l -> (x, y)Source

Instances

HZip HNil HNil HNil 
HZip tx ty l => HZip (HCons hx tx) (HCons hy ty) (HCons (hx, hy) l)