Module

Sigil.Text

Package
purescript-sigil
Repository
afcondon/purescript-sigil

Pure text rendering and type variable collection utilities.

#renderTypeToText Source

renderTypeToText :: RenderType -> String

Render a RenderType back to plain text.

#constraintText Source

constraintText :: Constraint -> String

Render a constraint to plain text (for measurement and display).

#collectTypeVars Source

collectTypeVars :: RenderType -> Set String

Collect all type variable names from a RenderType.

#collectArrowParams Source

collectArrowParams :: RenderType -> Array RenderType

Collect all params of an arrow chain (including return type at end).

#collectForallVars Source

collectForallVars :: RenderType -> Array String

Collect all forall-quantified variable names (including nested foralls).

#fieldVars Source

fieldVars :: Array RowField -> Maybe String -> Set String

Collect type variables from record/row fields.