unison-core1-0.0.0
Safe HaskellSafe-Inferred
LanguageHaskell2010

Unison.ReferentPrime

Synopsis

Documentation

data Referent' r 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.

When Ref' then r represents a term.

When Con' then r is a type declaration.

Instances

Instances details
Functor Referent' Source # 
Instance details

Defined in Unison.ReferentPrime

Methods

fmap :: (a -> b) -> Referent' a -> Referent' b #

(<$) :: a -> Referent' b -> Referent' a #

Generic (Referent' r) Source # 
Instance details

Defined in Unison.ReferentPrime

Associated Types

type Rep (Referent' r) :: Type -> Type #

Methods

from :: Referent' r -> Rep (Referent' r) x #

to :: Rep (Referent' r) x -> Referent' r #

Show r => Show (Referent' r) Source # 
Instance details

Defined in Unison.ReferentPrime

Eq r => Eq (Referent' r) Source # 
Instance details

Defined in Unison.ReferentPrime

Methods

(==) :: Referent' r -> Referent' r -> Bool #

(/=) :: Referent' r -> Referent' r -> Bool #

Ord r => Ord (Referent' r) Source # 
Instance details

Defined in Unison.ReferentPrime

type Rep (Referent' r) Source # 
Instance details

Defined in Unison.ReferentPrime

Basic queries

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

Lenses

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

A lens onto the reference in a referent.

Conversions