Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: endgame <[email protected]>
  • Loading branch information
RyanGlScott and endgame committed May 12, 2024
1 parent 44ca39b commit 472dfa1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/Control/Lens/Lens.hs
Original file line number Diff line number Diff line change
Expand Up @@ -1197,7 +1197,7 @@ l <<>= r = l <%= (<> r)
-- However, unlike ('<<>~'), it is prepended to the head side.
--
-- When you do not need the result of the operation, ('Control.Lens.Setter.<>:~') is more flexible.
(<<>:~) :: Semigroup m => LensLike ((,)m) s t m m -> m -> s -> (m, t)
(<<>:~) :: Semigroup m => LensLike ((,) m) s t m m -> m -> s -> (m, t)
l <<>:~ m = l <%~ (m <>)
{-# INLINE (<<>:~) #-}

Expand All @@ -1206,7 +1206,7 @@ l <<>:~ m = l <%~ (m <>)
-- However, unlike ('<<>~'), it is prepended to the head side.
--
-- When you do not need the result of the operation, ('Control.Lens.Setter.<>:~') is more flexible.
(<<<>:~) :: Semigroup m => LensLike' ((,)m) s m -> m -> s -> (m, s)
(<<<>:~) :: Semigroup m => LensLike' ((,) m) s m -> m -> s -> (m, s)
l <<<>:~ m = l <<%~ (m <>)
{-# INLINE (<<<>:~) #-}

Expand All @@ -1215,7 +1215,7 @@ l <<<>:~ m = l <<%~ (m <>)
-- However, unlike ('<<>='), it is prepended to the head side.
--
-- When you do not need the result of the operation, ('Control.Lens.Setter.<>:=') is more flexible.
(<<>:=) :: (MonadState s m, Semigroup r) => LensLike' ((,)r) s r -> r -> m r
(<<>:=) :: (MonadState s m, Semigroup r) => LensLike' ((,) r) s r -> r -> m r
l <<>:= r = l <%= (r <>)
{-# INLINE (<<>:=) #-}

Expand All @@ -1224,7 +1224,7 @@ l <<>:= r = l <%= (r <>)
-- However, unlike ('<<<>='), it is prepended to the head side.
--
-- When you do not need the result of the operation, ('Control.Lens.Setter.<>:=') is more flexible.
(<<<>:=) :: (MonadState s m, Semigroup r) => LensLike' ((,)r) s r -> r -> m r
(<<<>:=) :: (MonadState s m, Semigroup r) => LensLike' ((,) r) s r -> r -> m r
l <<<>:= r = l <<%= (r <>)
{-# INLINE (<<<>:=) #-}

Expand Down

0 comments on commit 472dfa1

Please sign in to comment.