app-lens 0.1.0.0 → 0.1.0.1
raw patch · 2 files changed
+16/−16 lines, 2 filesPVP ok
version bump matches the API change (PVP)
API changes (from Hackage documentation)
Files
- Control/LensFunction/Util.hs +1/−0
- app-lens.cabal +15/−16
Control/LensFunction/Util.hs view
@@ -1,4 +1,5 @@ {-# LANGUAGE Trustworthy #-}+{-# LANGUAGE FlexibleContexts #-} module Control.LensFunction.Util where
app-lens.cabal view
@@ -1,5 +1,5 @@ name: app-lens-version: 0.1.0.0+version: 0.1.0.1 synopsis: applicative (functional) bidirectional programming beyond composition chains description:@@ -40,18 +40,16 @@ . The obtained lens works as expected. .- .- >>> ["banana", "orange", "apple"] ^. unlinesL- "banana\norange\napple\n"- >>> ["banana", "orange", "apple"] & unlinesL .~ "Banana\nOrange\nApple\n"- ["Banana","Orange","Apple"]- .+ > >>> ["banana", "orange", "apple"] ^. unlinesL+ > "banana\norange\napple\n"+ > >>> ["banana", "orange", "apple"] & unlinesL .~ "Banana\nOrange\nApple\n"+ > ["Banana","Orange","Apple"] . - One may prefer to define @unliftF@ with 'foldr'. Indeed, we can+ One may prefer to define @unlinesF@ with 'foldr'. Indeed, we can use 'foldr' as below because @catLineF@ and @unlinesF@ are simply Haskell functions. .- > unliftF = foldr (lift2 catLineL) (new "") + > unlinesF = foldr (lift2 catLineL) (new "") . Here, the program is written in a point-free manner similar to that of the other lens frameworks. But note that this 'foldr' is just@@ -60,8 +58,7 @@ More examples can be found at \"Examples\" in the source code <https://bitbucket.org/kztk/app-lens/downloads>. . - === Remark- .+ /Remark/. The applicative-style programming is possible in our implementation because a function representation different from Kmett's is used for lenses. As a result, when we program record-field access chains such as @@ -85,6 +82,8 @@ homepage: https://bitbucket.org/kztk/app-lens bug-reports: https://bitbucket.org/kztk/app-lens/issues tested-with: GHC == 7.8.3+ , GHC == 7.8.4+ , GHC == 7.10.2 author: Kazutaka Matsuda copyright: (c) Kazutaka Matsuda, 2015@@ -121,10 +120,10 @@ DeriveDataTypeable, DeriveFunctor, DeriveFoldable, DeriveTraversable build-depends: - base >=4.7 && < 4.8, + base >=4.7 && < 4.9, containers >=0.5 && < 0.6, - mtl >=2.2 && < 2.3,- lens >=4 && < 4.12+ mtl >=2.2 && < 2.4,+ lens >=4 && < 4.13 default-language: Haskell2010 @@ -157,7 +156,7 @@ mtl, containers, lens, - deepseq >= 1.3 && < 1.4, + deepseq >= 1.3 && < 1.5, criterion >= 1.1 && < 1.2 @@ -177,7 +176,7 @@ mtl, containers, lens,- deepseq >= 1.3 && < 1.4, + deepseq >= 1.3 && < 1.5, criterion >= 1.1 && < 1.2 other-modules: