@@ -43,7 +43,7 @@ import Data.Generics.Internal.Families
43import Data.Generics.Product.Internal.Positions
43import Data.Generics.Product.Internal.Positions
45import Data.Kind (Constraint, Type)
45import Data.Kind (Constraint, Type)
46−import Data.Type.Bool (type (&&), If)
46+import Data.Type.Bool (type (&&))
47import GHC.Generics
47import GHC.Generics
48import GHC.TypeLits (type (<=?), Nat, TypeError, ErrorMessage(..))
48import GHC.TypeLits (type (<=?), Nat, TypeError, ErrorMessage(..))
@@ -105,10 +105,10 @@ instance -- see Note [Changing type parameters]
105 , Generic t'
105 , Generic t'
106 , GHasPosition' i (Rep s) a
106 , GHasPosition' i (Rep s) a
107 , GHasPosition' i (Rep s') a'
107 , GHasPosition' i (Rep s') a'
108− , GHasPosition' i (Rep t') b'
109 , GHasPosition 1 i (Rep s) (Rep t) a b
108 , GHasPosition 1 i (Rep s) (Rep t) a b
110− , t ~ If (HasParams s) (Infer s a' b) s
109+ , t ~ Infer s a' b
110+ , GHasPosition' i (Rep t') b'
111− , s ~ If (HasParams t) (Infer t b' a) t
111+ , s ~ Infer t b' a
112 ) => HasPosition i s t a b where
112 ) => HasPosition i s t a b where
114 position f s = ravel (repLens . gposition @1 @i) f s
114 position f s = ravel (repLens . gposition @1 @i) f s