@@ -9,6 +9,7 @@ module JRec
99 pattern Rec,
1010 append,
1111 union,
12+ -- insertOrSet
1213 )
1314where
1415
@@ -74,6 +75,22 @@ union ::
7475 Rec res
7576union = R.union
7677
78+--insertOrSet ::
79+-- forall label value rhs res.
80+-- ( KnownNat (R.RecSize rhs),
81+-- KnownNat (R.RecTyIdxH 0 label res),
82+-- KnownNat (1 + R.RecSize rhs),
83+-- KnownSymbol label,
84+-- res ~ R.Union '[label := value] rhs,
85+-- value ~ R.RecTy label res,
86+-- R.RecCopy rhs rhs res
87+-- ) =>
88+-- label := value ->
89+-- Rec rhs ->
90+-- Rec res
91+--insertOrSet = union . Rec
92+--
93+
7794----------------------------------------------------------------------------
7895-- Generic
7996----------------------------------------------------------------------------