Module

Data.Generic.Rep

Package
purescript-prelude
Repository
purescript/purescript-prelude

#GenericSource

classGeneric a rep | a -> rep where

The Generic class asserts the existence of a type function from types to their representations using the type constructors defined in this module.

Members

#repOfSource

repOf::foralla rep.Generic a rep =>Proxy a ->Proxy rep

#NoConstructorsSource

newtypeNoConstructors

A representation for types with no constructors.

#NoArgumentsSource

dataNoArguments

A representation for constructors with no arguments.

Constructors

Instances

#SumSource

dataSum a b

A representation for types with multiple constructors.

Constructors

Instances

#ProductSource

dataProduct a b

A representation for constructors with multiple fields.

Constructors

Instances

#ConstructorSource

newtypeConstructor::Symbol->Type->TypenewtypeConstructor(name ::Symbol) a

A representation for constructors which includes the data constructor name as a type-level string.

Constructors

Instances

#ArgumentSource

newtypeArgument a

A representation for an argument in a data constructor.

Constructors

Instances