Module
Sigil.Types
- Package
- purescript-sigil
- Repository
- afcondon/purescript-sigil
Core type AST for rendering type signatures.
Language-agnostic representation of type expressions.
#RenderType Source
data RenderTypeConstructors
TVar StringTCon StringTApp RenderType (Array RenderType)TArrow RenderType RenderTypeTConstrained (Array Constraint) RenderTypeTForall (Array String) RenderTypeTRecord (Array RowField) (Maybe String)TRow (Array RowField) (Maybe String)TParens RenderTypeTKinded RenderType RenderTypeTString StringTWildcardTOperator RenderType String RenderType
#RowField Source
type RowField = { label :: String, value :: RenderType }#Constraint Source
type Constraint = { args :: Array RenderType, className :: String }#SuperclassInfo Source
type SuperclassInfo = { methods :: Array { ast :: Maybe RenderType, name :: String }, name :: String }Superclass info for class definition rendering. Contains the class name and its required methods with optional parsed types.