data-lens-light 0.1 → 0.1.0.1
raw patch · 4 files changed
+28/−8 lines, 4 filesdep ~mtlPVP ok
version bump matches the API change (PVP)
Dependency ranges changed: mtl
API changes (from Hackage documentation)
Files
- CHANGELOG.md +7/−0
- README.md +16/−0
- data-lens-light.cabal +5/−3
- src/Data/Lens/Light/State.hs +0/−5
+ CHANGELOG.md view
@@ -0,0 +1,7 @@+Changes+=======++Version 0.1.0.1+---------------++Upgrade to mtl 2.2
+ README.md view
@@ -0,0 +1,16 @@+data-lens-light+===============++This is a minimalistic lens library, based on data-lens.++The main differences from data-lens are:++* reduced API+* minimal set of dependencies+* data-lens, data-lens-fd and data-lens-template exported through a single+ module in a single package+* `MonadState` combinators return `()`+* strict `MonadState` combinators force the whole state, too++(The above list may be not exhaustive. Compatibility with data-lens is not a+goal.)
data-lens-light.cabal view
@@ -2,7 +2,7 @@ -- documentation, see http://haskell.org/cabal/users-guide/ name: data-lens-light-version: 0.1+version: 0.1.0.1 synopsis: Simple lenses, minimum dependencies description: See <https://github.com/feuerbach/data-lens-light/blob/master/README.md> homepage: https://github.com/feuerbach/data-lens-light@@ -13,7 +13,9 @@ -- copyright: category: Data build-type: Simple--- extra-source-files: +extra-source-files:+ README.md+ CHANGELOG.md cabal-version: >=1.10 library@@ -28,6 +30,6 @@ build-depends: base >= 4.5 && < 5, template-haskell,- mtl+ mtl >= 2.2 hs-source-dirs: src default-language: Haskell2010
src/Data/Lens/Light/State.hs view
@@ -35,8 +35,3 @@ l !%= f = modify' $ modL' l f infixr 4 %=, !%=--modify' :: MonadState s m => (s -> s) -> m ()-modify' f = do- s <- get- put $! f s