purescript-0.15.12: PureScript Programming Language Compiler
Safe HaskellSafe-Inferred
LanguageHaskell2010

Language.PureScript.Pretty

Description

A collection of pretty printers for core data types:

  • [Language.PureScript.Pretty.Kinds] Pretty printer for kinds
  • [Language.PureScript.Pretty.Values] Pretty printer for values
  • [Language.PureScript.Pretty.Types] Pretty printer for types
Synopsis

Documentation

prettyPrintString :: PSString -> Text #

Pretty print a PSString, using PureScript escape sequences.

prettyPrintSuggestedType :: Type a -> String #

Generate a pretty-printed string representing a suggested Type

prettyPrintValue :: Int -> Expr -> Box #

Pretty-print an expression

typeAsBox :: Int -> Type a -> Box #

prettyPrintType :: Int -> Type a -> String #

Generate a pretty-printed string representing a Type

prettyPrintTypeWithUnicode :: Int -> Type a -> String #

Generate a pretty-printed string representing a Type using unicode symbols where applicable

prettyPrintTypeAtom :: Int -> Type a -> String #

Generate a pretty-printed string representing a Type, as it should appear inside parentheses

prettyPrintBinder :: Binder -> Text #

Generate a pretty-printed string representing a Binder