RepLib-0.5.3.1: Generic programming library with representation types

Portabilitynon-portable
Stabilityexperimental
Maintainersweirich@cis.upenn.edu
Safe HaskellNone

Generics.RepLib.Derive

Description

Automatically derive representations and instance declarations for user defined datatypes. The typical use is $(derive [''MyType1, ''MyType2])

Synopsis

Documentation

derive :: [Name] -> Q [Dec]Source

Generate representations (both basic and parameterized) for a list of types.

derive_abstract :: [Name] -> Q [Dec]Source

Generate abstract representations for a list of types.