File tree Expand file tree Collapse file tree 1 file changed +2
-7
lines changed Expand file tree Collapse file tree 1 file changed +2
-7
lines changed Original file line number Diff line number Diff line change @@ -15,7 +15,6 @@ module Cooked.Tweak.Common
1515 viewAllTweak ,
1616 setTweak ,
1717 overTweak ,
18- modifySkel ,
1918 overMaybeTweak ,
2019 overMaybeSelectingTweak ,
2120 selectP ,
@@ -128,15 +127,11 @@ viewAllTweak optic = getTxSkel <&> toListOf optic
128127
129128-- | The tweak that sets a certain value in the 'TxSkel'.
130129setTweak :: (MonadTweak m , Is k A_Setter ) => Optic' k is TxSkel a -> a -> m ()
131- setTweak optic newValue = modifySkel $ set optic newValue
130+ setTweak optic = overTweak optic . const
132131
133132-- | The tweak that modifies a certain value in the 'TxSkel'.
134133overTweak :: (MonadTweak m , Is k A_Setter ) => Optic' k is TxSkel a -> (a -> a ) -> m ()
135- overTweak optic change = modifySkel $ over optic change
136-
137- -- | Apply an arbitrary modification function to the 'TxSkel'.
138- modifySkel :: (MonadTweak m ) => (TxSkel -> TxSkel ) -> m ()
139- modifySkel f = getTxSkel >>= putTxSkel . f
134+ overTweak optic change = getTxSkel >>= putTxSkel . over optic change
140135
141136-- | Like 'overTweak', but only modifies foci on which the argument function
142137-- returns @Just@ the new focus. Returns a list of the foci that were modified,
You can’t perform that action at this time.
0 commit comments