registry-0.1.7.1: data structure for assembling components

Safe HaskellNone
LanguageHaskell2010

Data.Registry.TH

Synopsis

Documentation

data TypeclassOptions Source #

These generation options can be used to tweak the generated names

checkRegistry :: Name -> Q Exp Source #

Check that all the input values of a registry can be built This will check that all the input values can be built out of the registry and also return a normalized registry where the types have been de-duplicated

Usage:

initialRegistry :: Registry _ _ initialRegistry = val x +: fun y +: ... +: end

checkedRegistry :: Registry _ _ checkedRegistry = $(checkRegistry initialRegistry)

makeTypeclass :: Name -> DecsQ Source #

Create the haskell code presented in the module description

makeTypeclassWith :: TypeclassOptions -> Name -> DecsQ Source #

Make a typeclass using some specific generation options

unsafeCoerceRegistry :: Registry ins out -> Registry ins1 out1 Source #

This is unsafe and is only used in the context of the checkRegistry function