purescript-0.13.0: PureScript Programming Language Compiler

Safe HaskellNone
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 Source #

Pretty print a PSString, using Haskell/PureScript escape sequences. This is identical to the Show instance except that we get a Text out instead of a String.

prettyPrintKind :: Kind a -> Text Source #

Generate a pretty-printed string representing a Kind

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

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

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

Generate a pretty-printed string representing a Type

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

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

prettyPrintSuggestedType :: Type a -> String Source #

Generate a pretty-printed string representing a suggested Type

prettyPrintValue :: Int -> Expr -> Box Source #

Pretty-print an expression

prettyPrintBinder :: Binder -> Text Source #

Generate a pretty-printed string representing a Binder