| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Unison.ConstructorReference
Description
The constructor reference type.
Synopsis
- data GConstructorReference r = ConstructorReference !r !ConstructorId
- type ConstructorReference = GConstructorReference TypeReference
- type ConstructorReferenceId = GConstructorReference TypeReferenceId
- reference_ :: forall r s f. Functor f => (r -> f s) -> GConstructorReference r -> f (GConstructorReference s)
- toId :: ConstructorReference -> Maybe ConstructorReferenceId
- toShortHash :: ConstructorReference -> ShortHash
- toText :: ConstructorReference -> Text
Documentation
data GConstructorReference r Source #
A reference to a constructor is represented by a reference to its type declaration, plus the ordinal constructor id.
Constructors
| ConstructorReference !r !ConstructorId |
Instances
reference_ :: forall r s f. Functor f => (r -> f s) -> GConstructorReference r -> f (GConstructorReference s) Source #
A lens onto the reference part of a constructor reference.
toText :: ConstructorReference -> Text Source #