purescript-0.15.12: PureScript Programming Language Compiler

Safe Haskell | Safe-Inferred
Language | Haskell2010

Language.PureScript.Docs.RenderedCode.RenderType

Description

Functions for producing RenderedCode values from PureScript Type values.

Synopsis

- renderType :: Type a -> RenderedCode
- renderTypeWithRole :: [Role] -> Type a -> RenderedCode
- renderType' :: PrettyPrintType -> RenderedCode
- renderTypeAtom :: Type a -> RenderedCode
- renderTypeAtom' :: PrettyPrintType -> RenderedCode
- renderRow :: [(Label, PrettyPrintType)] -> Maybe PrettyPrintType -> RenderedCode

# Documentation

renderType :: Type a -> RenderedCode #

Render code representing a Type

renderTypeWithRole :: [Role] -> Type a -> RenderedCode #

Render code representing a Type but augment the `TypeVar`s with their `Role` if they have one

renderType' :: PrettyPrintType -> RenderedCode #

renderTypeAtom :: Type a -> RenderedCode #

Render code representing a Type, as it should appear inside parentheses

renderTypeAtom' :: PrettyPrintType -> RenderedCode #

renderRow :: [(Label, PrettyPrintType)] -> Maybe PrettyPrintType -> RenderedCode #

Render code representing a Row