unison-core1-0.0.0
Safe HaskellSafe-Inferred
LanguageHaskell2010

Unison.Referent

Synopsis

Documentation

type Referent = Referent' Reference Source #

Specifies a term.

Either a term Reference, a data constructor, or an effect constructor.

Slightly odd naming. This is the "referent of term name in the codebase", rather than the target of a Reference.

type Id = Referent' Id Source #

By definition, cannot be a builtin.

pattern RefId :: Id -> Id Source #

fold :: (r -> a) -> (r -> ConstructorId -> ConstructorType -> a) -> Referent' r -> a Source #

fromTermReference :: TermReference -> Referent Source #

Inject a Term Reference into a Referent

Lenses

reference_ :: Lens (Referent' r) (Referent' r') r r' Source #

A lens onto the reference in a referent.

ShortHash helpers