@@ -46,8 +46,8 @@ instance
4646 ( GSplash sub sup
4747 , GDowncast sub sup
4848 ) => GAsSubtype sub sup where
49− _GSub f = prismPRavel (prism _GSplash _GDowncast) f
50− {-# INLINE _GSub #-}
49+ _GSub f = (prism _GSplash _GDowncast) f
50+ {-# INLINE[0] _GSub #-}
5151
5252--------------------------------------------------------------------------------
5353
@@ -57,18 +57,15 @@ class GSplash (sub :: Type -> Type) (sup :: Type -> Type) where
5757instance (GSplash a sup, GSplash b sup) => GSplash (a :+: b) sup where
5858 _GSplash (L1 rep) = _GSplash rep
5959 _GSplash (R1 rep) = _GSplash rep
60− {-# INLINE _GSplash #-}
6160
6261instance
6362 ( GIsList () subf subf as as
6463 , GAsType supf as
6564 ) => GSplash (C1 meta subf) supf where
66− _GSplash p = build (prismPRavel (_GTyped . fromIso (glist @()) . fromIso mIso)) p
67− {-# INLINE _GSplash #-}
65+ _GSplash p = build ((_GTyped . fromIso (glist @()) . fromIso mIso)) p
6866
6967instance GSplash sub sup => GSplash (D1 c sub) sup where
7068 _GSplash (M1 m) = _GSplash m
71− {-# INLINE _GSplash #-}
7269
7370--------------------------------------------------------------------------------
7471
@@ -82,7 +79,6 @@ instance
8279 _GDowncast (M1 m) = case _GDowncastC @(HasPartialTypeP as sub) m of
8380 Left _ -> Left (M1 m)
8481 Right r -> Right r
85− {-# INLINE _GDowncast #-}
8682
8783instance (GDowncast sub l, GDowncast sub r) => GDowncast sub (l :+: r) where
8884 _GDowncast (L1 x) = case _GDowncast x of
@@ -91,24 +87,22 @@ instance (GDowncast sub l, GDowncast sub r) => GDowncast sub (l :+: r) where
9187 _GDowncast (R1 x) = case _GDowncast x of
9288 Left _ -> Left (R1 x)
9389 Right r -> Right r
94− {-# INLINE _GDowncast #-}
9590
9691instance GDowncast sub sup => GDowncast sub (D1 m sup) where
9792 _GDowncast (M1 m) = case _GDowncast m of
9893 Left _ -> Left (M1 m)
9994 Right r -> Right r
100− {-# INLINE _GDowncast #-}
10195
10296class GDowncastC (contains :: Bool) sub sup where
10397 _GDowncastC :: sup x -> Either (sup x) (sub x)
10498
10599instance GDowncastC 'False sub sup where
106100 _GDowncastC sup = Left sup
107− {-# INLINE _GDowncastC #-}
108101
109102instance
110103 ( GAsType sub subl
111104 , GIsList () sup sup subl subl
112105 ) => GDowncastC 'True sub sup where
113− _GDowncastC sup = Right (build (prismPRavel (_GTyped . fromIso (glist @()))) sup)
106+ _GDowncastC sup = Right (build (_GTyped . fromIso (glist @())) sup)
114107 {-# INLINE _GDowncastC #-}
108+