purescript-bridge-0.3.0.2: Generate PureScript data types from Haskell data types

Safe HaskellSafe
LanguageHaskell2010

Language.PureScript.Bridge.SumType

Synopsis

Documentation

data SumType Source

Generic representation of your Haskell types, the contained (leaf) types can be modified to match compatible PureScript types, by using TypeBridge functions like defaultBridge with writePSTypes.

Instances

toSumType :: forall t. (Generic t, Typeable t, GDataConstructor (Rep t)) => Proxy t -> SumType Source

Create a representation of your sum (and product) types, for doing type translations and writing it out to your PureScript modules. In order to get the type information we use a dummy variable of type Proxy (YourType).

data RecordEntry Source

Constructors

RecordEntry 

Fields

recLabel :: !Text
 
recValue :: !TypeInfo