Safe Haskell | Safe |
---|---|
Language | Haskell2010 |
This module contains some useful utilities copy-and-pasted from the lens
library to avoid a dependency which are used internally and also re-exported
for convenience
Synopsis
- rewriteOf :: ASetter a b a b -> (b -> Maybe a) -> a -> b
- transformOf :: ASetter a b a b -> (b -> b) -> a -> b
- rewriteMOf :: Monad m => LensLike (WrappedMonad m) a b a b -> (b -> m (Maybe a)) -> a -> m b
- transformMOf :: Monad m => LensLike (WrappedMonad m) a b a b -> (b -> m b) -> a -> m b
- mapMOf :: LensLike (WrappedMonad m) s t a b -> (a -> m b) -> s -> m t
Utilities
rewriteOf :: ASetter a b a b -> (b -> Maybe a) -> a -> b Source #
Identical to Control.Lens.
rewriteOf
transformOf :: ASetter a b a b -> (b -> b) -> a -> b Source #
Identical to Control.Lens.
transformOf
rewriteMOf :: Monad m => LensLike (WrappedMonad m) a b a b -> (b -> m (Maybe a)) -> a -> m b Source #
Identical to Control.Lens.
rewriteMOf
transformMOf :: Monad m => LensLike (WrappedMonad m) a b a b -> (b -> m b) -> a -> m b Source #
Identical to Control.Lens.
transformMOf
mapMOf :: LensLike (WrappedMonad m) s t a b -> (a -> m b) -> s -> m t Source #
Identical to Control.Lens.
mapMOf