They would be a simpler alternative to InductiveEnv for many cases.
Something like
instance Has r1_ m (r1_ m, y) where
dep (r1,_) = r1
instance Has r2_ m (x, r2_ m) where
dep (_,r2) = r2
instance Has r1_ m (r1_ m, y, z) where
dep (r1,_,_) = r1
instance Has r2_ m (x, r2_ m, z) where
dep (_,r2,_) = r2
instance Has r3_ m (x, y, r3_ m) where
dep (_,_,r3) = r3
They would be a simpler alternative to
InductiveEnv
for many cases.Something like
Also an instance for
Solo
, starting with GHC 9.2.Would GHC complain about overlapping instances?