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

Safe HaskellSafe
LanguageHaskell2010

Language.PureScript.Bridge.TypeInfo

Synopsis

Documentation

type TypeBridge = TypeInfo -> Maybe TypeInfo Source

Translates a Haskell type info to a PureScript type info:

data TypeInfo Source

Basic info about a data type:

Constructors

TypeInfo 

Fields

typePackage :: !Text

Hackage package

typeModule :: !Text

Full Module path

typeName :: !Text
 
typeParameters :: ![TypeInfo]
 

flattenTypeInfo :: TypeInfo -> [TypeInfo] Source

Put the TypeInfo in a list together with all its typeParameters (recursively)

eqTypeName :: Text -> TypeInfo -> Bool Source

Little helper for type bridge implementers