Safe Haskell | Safe-Inferred |
---|---|
Language | GHC2021 |
Documentation
type family PSubtype (a :: PType) (b :: PType) :: Constraint where ... Source #
PSubtype a b = (PSubtype' a b ~ 'PSubtypeRelation, PSubtypeHelper a b (PSubtype' a b)) |
type family PSubtype' (a :: PType) (b :: PType) :: PSubtypeRelation where ... Source #
PSubtype' a a = 'PSubtypeRelation | |
PSubtype' a b = Helper a b (PInner b) |
pupcastF :: forall a b (p :: PType -> PType) s. (PSubtype a b, PCovariant p) => Proxy p -> Term s (p b) -> Term s (p a) Source #
pdowncastF :: forall a b (p :: PType -> PType) s. (PSubtype a b, PContravariant p) => Proxy p -> Term s (p a) -> Term s (p b) Source #