HList-0.2.3: Heterogeneous lists

Data.HList.MakeLabels

Description

Making labels in the style of Data.HList.Label4

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