@@ -89,11 +89,13 @@ data Rec (lts :: [*]) = MkRec
90type role Rec representational
90type role Rec representational
93− ( RecApply lts lts Show,
93+ ( RecApply lts lts Show,
94 GShow Proxy (Rep (Rec lts)),
94 GShow Proxy (Rep (Rec lts)),
95 Generic (Rec lts)
95 Generic (Rec lts)
96− ) => Show (Rec lts) where
97+ Show (Rec lts)
97 show = (\x -> if null x then "{}" else x) . unwords . drop 1 . words . flip (gshowsPrec 0) ""
99 show = (\x -> if null x then "{}" else x) . unwords . drop 1 . words . flip (gshowsPrec 0) ""
99instance RecEq lts lts => Eq (Rec lts) where
101instance RecEq lts lts => Eq (Rec lts) where
@@ -661,8 +663,8 @@ lens lbl f r =
661 fmap (\v -> set lbl v r) (f (get lbl r))
663 fmap (\v -> set lbl v r) (f (get lbl r))
662{-# INLINE lens #-}
664{-# INLINE lens #-}
664−opticLens ::
666+opticLens ::
665− (Has l lts v, Set l lts v' ~ lts') => FldProxy l -> OL.Lens (Rec lts) (Rec lts') v v'
667+ (Has l lts v, Set l lts v' ~ lts') => FldProxy l -> OL.Lens (Rec lts) (Rec lts') v v'
666opticLens lbl =
668opticLens lbl =
667 OL.lensVL $ lens lbl
669 OL.lensVL $ lens lbl
668{-# INLINE opticLens #-}
670{-# INLINE opticLens #-}