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

Unison.Syntax.NamePrinter

Synopsis

Documentation

prettyHashQualifiedFull :: (HashQualified Name, HashQualified Name) -> Pretty ColorText Source #

Given (full, suffixified), render a full hash-qualified name, but with a grayed-out prefix that doesn't contribute to the uniqueness of the suffix.

For example, if name "foo.bar.baz" has unique suffix "baz", then "foo.bar." will be grayed out.

prettyNamedReference :: Int -> Name -> Reference -> Pretty SyntaxText Source #

Pretty-print a reference as a name and the given number of characters of its hash.

prettyNamedReferent :: Int -> Name -> Referent -> Pretty SyntaxText Source #

Pretty-print a referent as a name and the given number of characters of its hash.

prettyReference :: Int -> Reference -> Pretty SyntaxText Source #

Pretty-print a reference as the given number of characters of its hash.

prettyReferent :: Int -> Referent -> Pretty SyntaxText Source #

Pretty-print a referent as the given number of characters of its hash.