@@ -89,7 +89,7 @@ class AsSubtype sub sup where
8989 -- >>> duck ^? _Sub :: Maybe FourLeggedAnimal
9090 -- Nothing
9191 _Sub :: Prism' sup sub
92− _Sub eta = prism injectSub projectSub eta
92+ _Sub = prism injectSub projectSub
9393 {-# INLINE _Sub #-}
9494
9595 -- |Injects a subtype into a supertype (upcast).
@@ -108,7 +108,8 @@ instance
108108 , GAsSubtype (Rep sub) (Rep sup)
109109 ) => AsSubtype sub sup where
110110
111− _Sub f = prismRavel (prismPRavel (repIso . _GSub . fromIso repIso)) f
111+ _Sub f = prismRavel (repIso . _GSub . fromIso repIso) f
112+ {-# INLINE _Sub #-}
112113
113114-- See Note [Uncluttering type signatures]
114115instance {-# OVERLAPPING #-} AsSubtype a Void where