th-lego-0.1.0.2: Template Haskell construction utilities

Safe HaskellNone
LanguageHaskell2010

THLego.Instances

Contents

Synopsis

IsLabel

Constructor

tupleAdtConstructorIsLabel :: TyLit -> Type -> Name -> [Type] -> Dec Source #

IsLabel instance which converts tuple to ADT.

Accessor

HasField

hasField :: TyLit -> Type -> Type -> [Clause] -> Dec Source #

The most general template for HasField.

enumHasField :: TyLit -> Type -> Name -> Dec Source #

Field which projects enum values into bools.