Safe Haskell | Safe-Inferred |
---|---|
Language | GHC2021 |
Documentation
data ConstructorType Source #
Instances
Show ConstructorType Source # | |
Defined in U.Codebase.Referent showsPrec :: Int -> ConstructorType -> ShowS # show :: ConstructorType -> String # showList :: [ConstructorType] -> ShowS # | |
Eq ConstructorType Source # | |
Defined in U.Codebase.Referent (==) :: ConstructorType -> ConstructorType -> Bool # (/=) :: ConstructorType -> ConstructorType -> Bool # | |
Ord ConstructorType Source # | |
Defined in U.Codebase.Referent compare :: ConstructorType -> ConstructorType -> Ordering # (<) :: ConstructorType -> ConstructorType -> Bool # (<=) :: ConstructorType -> ConstructorType -> Bool # (>) :: ConstructorType -> ConstructorType -> Bool # (>=) :: ConstructorType -> ConstructorType -> Bool # max :: ConstructorType -> ConstructorType -> ConstructorType # min :: ConstructorType -> ConstructorType -> ConstructorType # |
data Referent' termRef typeRef Source #
Ref termRef | |
Con typeRef ConstructorId |
Instances
Bifoldable Referent' Source # | |
Bifunctor Referent' Source # | |
Bitraversable Referent' Source # | |
Defined in U.Codebase.Referent bitraverse :: Applicative f => (a -> f c) -> (b -> f d) -> Referent' a b -> f (Referent' c d) # | |
Foldable (Referent' termRef) Source # | |
Defined in U.Codebase.Referent fold :: Monoid m => Referent' termRef m -> m # foldMap :: Monoid m => (a -> m) -> Referent' termRef a -> m # foldMap' :: Monoid m => (a -> m) -> Referent' termRef a -> m # foldr :: (a -> b -> b) -> b -> Referent' termRef a -> b # foldr' :: (a -> b -> b) -> b -> Referent' termRef a -> b # foldl :: (b -> a -> b) -> b -> Referent' termRef a -> b # foldl' :: (b -> a -> b) -> b -> Referent' termRef a -> b # foldr1 :: (a -> a -> a) -> Referent' termRef a -> a # foldl1 :: (a -> a -> a) -> Referent' termRef a -> a # toList :: Referent' termRef a -> [a] # null :: Referent' termRef a -> Bool # length :: Referent' termRef a -> Int # elem :: Eq a => a -> Referent' termRef a -> Bool # maximum :: Ord a => Referent' termRef a -> a # minimum :: Ord a => Referent' termRef a -> a # | |
Traversable (Referent' termRef) Source # | |
Defined in U.Codebase.Referent traverse :: Applicative f => (a -> f b) -> Referent' termRef a -> f (Referent' termRef b) # sequenceA :: Applicative f => Referent' termRef (f a) -> f (Referent' termRef a) # mapM :: Monad m => (a -> m b) -> Referent' termRef a -> m (Referent' termRef b) # sequence :: Monad m => Referent' termRef (m a) -> m (Referent' termRef a) # | |
Functor (Referent' termRef) Source # | |
Generic (Referent' termRef typeRef) Source # | |
(Show termRef, Show typeRef) => Show (Referent' termRef typeRef) Source # | |
(Eq termRef, Eq typeRef) => Eq (Referent' termRef typeRef) Source # | |
(Ord termRef, Ord typeRef) => Ord (Referent' termRef typeRef) Source # | |
Defined in U.Codebase.Referent compare :: Referent' termRef typeRef -> Referent' termRef typeRef -> Ordering # (<) :: Referent' termRef typeRef -> Referent' termRef typeRef -> Bool # (<=) :: Referent' termRef typeRef -> Referent' termRef typeRef -> Bool # (>) :: Referent' termRef typeRef -> Referent' termRef typeRef -> Bool # (>=) :: Referent' termRef typeRef -> Referent' termRef typeRef -> Bool # max :: Referent' termRef typeRef -> Referent' termRef typeRef -> Referent' termRef typeRef # min :: Referent' termRef typeRef -> Referent' termRef typeRef -> Referent' termRef typeRef # | |
type Rep (Referent' termRef typeRef) Source # | |
Defined in U.Codebase.Referent type Rep (Referent' termRef typeRef) = D1 ('MetaData "Referent'" "U.Codebase.Referent" "unison-codebase-0.0.0-AFzt1HmKDX512erVMwvK3i" 'False) (C1 ('MetaCons "Ref" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 termRef)) :+: C1 ('MetaCons "Con" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 typeRef) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ConstructorId))) |
typeRef_ :: Traversal (Referent' termRef typeRef) (Referent' termRef typeRef') typeRef typeRef' Source #
termRef_ :: Traversal (Referent' termRef typeRef) (Referent' termRef' typeRef) termRef termRef' Source #
_Con :: Prism (Referent' tmr tyr) (Referent' tmr tyr') (tyr, ConstructorId) (tyr', ConstructorId) Source #
toReference :: Referent -> Reference Source #
toTermReference :: Referent' termRef typeRef -> Maybe termRef Source #
RefId (Id' hTm) | |
ConId (Id' hTp) ConstructorId |
Instances
Bifoldable Id' Source # | |
Bifunctor Id' Source # | |
Bitraversable Id' Source # | |
Defined in U.Codebase.Referent bitraverse :: Applicative f => (a -> f c) -> (b -> f d) -> Id' a b -> f (Id' c d) # | |
Functor (Id' hTm) Source # | |
(Show hTm, Show hTp) => Show (Id' hTm hTp) Source # | |
(Eq hTm, Eq hTp) => Eq (Id' hTm hTp) Source # | |
(Ord hTm, Ord hTp) => Ord (Id' hTm hTp) Source # | |
Defined in U.Codebase.Referent |
toShortHash :: Referent -> ShortHash Source #