th-lego-0.1.0.2: Template Haskell construction utilities

Safe HaskellNone
LanguageHaskell2010

THLego.Lambdas

Synopsis

Documentation

matcher :: [Match] -> Exp Source #

Simulates lambda-case without the need for extension.

productGetter :: Name -> Int -> Int -> Exp Source #

Lambda expression, which extracts a product member by index.

productSetter :: Name -> Int -> Int -> Exp Source #

Lambda expression, which sets a product member by index.