domain-core-0.1.0.3: Low-level API of "domain"
Safe HaskellSafe-Inferred
LanguageHaskell2010

DomainCore.Deriver

Description

Toolkit for definition of instance derivers for Domain specs.

Synopsis

Deriver definitions

newtype Deriver Source #

Specification of which instances to automatically derive for all the supported types in the model and how.

You can combine derivers using Monoid and Semigroup.

Constructors

Deriver (TypeDec -> Q [Dec])

Function from the type declaration in this package's own AST to a list of Template Haskell declarations in its quotation monad.

Instances

Instances details
Monoid Deriver Source # 
Instance details

Defined in DomainCore.Deriver

Semigroup Deriver Source # 
Instance details

Defined in DomainCore.Deriver

effectless :: (TypeDec -> [Dec]) -> Deriver Source #

Lift a pure function, which doesn't require the context of Q.