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

Unison.PrettyPrintEnv.Names

Synopsis

Namer

data Namer Source #

A "namer" associates a set of (possibly hash-qualified) names with a referent / type reference.

hqNamer :: Int -> Names -> Namer Source #

Make a "namer" out of a collection of names, respecting conflicted names. That is, if references #foo and #bar are both associated with name "baz", then the returned namer maps #foo too "baz"#foo and #bar to "baz"#bar, but otherwise if a reference #qux has a single name "qux", then the returned namer maps #qux to "qux" (not "qux"#qux).

namer :: Names -> Namer Source #

Make a "namer" out of a collection of names, ignoring conflicted names. That is, if references #foo and #bar are both associated with name "baz", then the returned namer maps #foo too "baz" (not "baz"#foo) and #bar to "baz" (not "baz"#bar).

Suffixifier

Pretty-print env