@@ -89,7 +89,7 @@ class AsSubtype sub sup where
89 -- >>> duck ^? _Sub :: Maybe FourLeggedAnimal
89 -- >>> duck ^? _Sub :: Maybe FourLeggedAnimal
90 -- Nothing
90 -- Nothing
91 _Sub :: Prism' sup sub
91 _Sub :: Prism' sup sub
92− _Sub eta = prism injectSub projectSub eta
92+ _Sub = prism injectSub projectSub
93 {-# INLINE _Sub #-}
93 {-# INLINE _Sub #-}
95 -- |Injects a subtype into a supertype (upcast).
95 -- |Injects a subtype into a supertype (upcast).
@@ -108,7 +108,8 @@ instance
108 , GAsSubtype (Rep sub) (Rep sup)
108 , GAsSubtype (Rep sub) (Rep sup)
109 ) => AsSubtype sub sup where
109 ) => AsSubtype sub sup where
111− _Sub f = prismRavel (prismPRavel (repIso . _GSub . fromIso repIso)) f
111+ _Sub f = prismRavel (repIso . _GSub . fromIso repIso) f
113-- See Note [Uncluttering type signatures]
114-- See Note [Uncluttering type signatures]
114instance {-# OVERLAPPING #-} AsSubtype a Void where
115instance {-# OVERLAPPING #-} AsSubtype a Void where