@@ -43,7 +43,7 @@ import Data.Generics.Internal.Families
4343import Data.Generics.Product.Internal.Positions
4444
4545import Data.Kind (Constraint, Type)
46−import Data.Type.Bool (type (&&), If)
46+import Data.Type.Bool (type (&&))
4747import GHC.Generics
4848import GHC.TypeLits (type (<=?), Nat, TypeError, ErrorMessage(..))
4949
@@ -105,10 +105,10 @@ instance -- see Note [Changing type parameters]
105105 , Generic t'
106106 , GHasPosition' i (Rep s) a
107107 , GHasPosition' i (Rep s') a'
108− , GHasPosition' i (Rep t') b'
109108 , GHasPosition 1 i (Rep s) (Rep t) a b
110− , t ~ If (HasParams s) (Infer s a' b) s
111− , s ~ If (HasParams t) (Infer t b' a) t
109+ , t ~ Infer s a' b
110+ , GHasPosition' i (Rep t') b'
111+ , s ~ Infer t b' a
112112 ) => HasPosition i s t a b where
113113
114114 position f s = ravel (repLens . gposition @1 @i) f s