unison-parser-typechecker-0.0.0
Safe HaskellSafe-Inferred
LanguageHaskell2010

Unison.Syntax.TermPrinter

Synopsis

Documentation

emptyAc :: AmbientContext Source #

prettyBlock' :: Var v => Bool -> PrettyPrintEnv -> Term v a -> Pretty SyntaxText Source #

prettyBinding :: Var v => PrettyPrintEnv -> HashQualified Name -> Term2 v at ap v a -> Pretty SyntaxText Source #

Render a binding, producing output of the form

foo : t -> u foo a = ...

The first line is only output if the term has a type annotation as the outermost constructor.

Binary functions with symbolic names are output infix, as follows:

(+) : t -> t -> t a + b = ...

prettyBindingWithoutTypeSignature :: Var v => PrettyPrintEnv -> HashQualified Name -> Term2 v at ap v a -> Pretty SyntaxText Source #

Like prettyBinding, but elides the type signature (if any).

prettyDoc2 :: forall v m. MonadPretty v m => AmbientContext -> Term3 v PrintAnnotation -> m (Maybe (Pretty SyntaxText)) Source #

pretty0 :: forall v m. MonadPretty v m => AmbientContext -> Term3 v PrintAnnotation -> m (Pretty SyntaxText) Source #

prettyPattern :: forall v loc. Var v => PrettyPrintEnv -> AmbientContext -> Precedence -> [v] -> Pattern loc -> (Pretty SyntaxText, [v]) Source #