lens-tutorial 1.0.2 → 1.0.3
raw patch · 2 files changed
+5/−4 lines, 2 filesPVP: major bump suggested
API removals or changes: PVP suggests a major version bump
API changes (from Hackage documentation)
- Control.Lens.Tutorial: traverse :: Traversable t => forall a (f :: * -> *) b. Applicative f => (a -> f b) -> t a -> f (t b)
+ Control.Lens.Tutorial: traverse :: Traversable t => forall (f :: * -> *) a b. Applicative f => (a -> f b) -> t a -> f (t b)
Files
- lens-tutorial.cabal +1/−1
- src/Control/Lens/Tutorial.hs +4/−3
lens-tutorial.cabal view
@@ -1,5 +1,5 @@ Name: lens-tutorial-Version: 1.0.2+Version: 1.0.3 Cabal-Version: >=1.10 Build-Type: Simple License: BSD3
src/Control/Lens/Tutorial.hs view
@@ -229,10 +229,11 @@ > type Getting b a b = (b -> Const b b) -> (a -> Const b a) > > -- ... equivalent to: (b -> b ) -> (a -> b )->-> -- ... equivalent to: (a -> b ) - ... you can build a `view`-like function.+ ... and if you apply a function of that type to `id` then you get a+ `view`-like function++> -- (a -> b ) Those are not the only two `Functor`s we can pick. In fact, we can do a lot more with lenses than just get and set values, but those are the two