Module

OhYes

Package
purescript-ohyes
Repository
justinwoo/purescript-ohyes

#toTS Source

toTS :: forall a. HasTSRep a => a -> a

identity function for applying the HasTSRep constraint

#generateTS Source

generateTS :: forall a. HasTSRep a => String -> Proxy a -> String

Generate Typescript type signatures for a given type, supplying a name to use as the type name

#VariantRecord Source

newtype VariantRecord (pairings :: Row Type)

VariantRecord to represent a union of records of string literal "tag" and dependently-typed "content".

Constructors

Instances

#overVariant Source

overVariant :: forall row. (Variant row -> Variant row) -> VariantRecord row -> VariantRecord row

A function to apply a function on the Variant form of the VariantRecord.

#toVariant Source

toVariant :: forall row. VariantRecord row -> Variant row

#fromVariant Source

fromVariant :: forall row. Variant row -> VariantRecord row

#HasTSRep Source

class HasTSRep a  where

Our main type class for types that can be represented in Typescript types without conversion. You may want to using newtype instance deriving for this class for your newtypes, but any other types should be tested for correctness.

Members

Instances

#HasTSRepFields Source

class HasTSRepFields (rl :: RowList)  where

Members

Instances

#FakeSumRecordMembers Source

Modules
OhYes