HList-0.2.2: Heterogeneous lists

Data.HList.MakeLabels

Description

Making labels

The following TH splice

  $(makeLabels ["getX","getY","draw"])

should expand into the following declarations

 data GetX;     getX     = proxy::Proxy GetX
 data GetY;     getY     = proxy::Proxy GetY
 data Draw;     draw     = proxy::Proxy Draw

Synopsis

Documentation

makeLabels :: [String] -> Q [Dec]Source

Our main function

label :: String -> Q [Dec]Source

Make a single label