packages feed

lens-simple 0.1.0.2 → 0.1.0.3

raw patch · 2 files changed

+15/−7 lines, 2 files

Files

Lens/Simple.hs view
@@ -21,6 +21,7 @@     , backwards     , over, (%~), set, (.~)     , (&)+    , (??)          -- * Pseudo-imperatives     , (+~), (*~), (-~), (//~), (&&~), (||~), (<>~)
lens-simple.cabal view
@@ -1,18 +1,25 @@ name:                lens-simple-version:             0.1.0.2+version:             0.1.0.3 synopsis:            simplified import of elementary lens-family combinators -description:         This module, <http://hackage.haskell.org/package/lens-simple/docs/Lens-Simple.html @Lens.Simple@> , just re-exports the main modules from Russell O\'Connor's +description:         This module, <http://hackage.haskell.org/package/lens-simple/docs/Lens-Simple.html Lens.Simple>, +                     just re-exports the main modules from Russell O\'Connor's                       <http://hackage.haskell.org/package/lens-family lens-family>                       package, the original <http://r6.ca/blog/20120623T104901Z.html van Laarhoven lens> library.                       @Lens.Simple@ also re-exports @makeLenses@ and                       other TH incantations from Dan Burton's associated                       <http://hackage.haskell.org/package/lens-family-th lens-family-th>. +                     The idea is just to make a sort of low-powered, minimal-dependency @lens-family@ equivalent of                       .-                     The idea is just to make a sort of minimal-dependency @lens-family@ equivalent of @import Control.Lens@, namely @import Lens.Simple@ -                     /-/- it's even one character shorter! +                     > import Control.Lens                      .-                     As an illustration, note that the +                     namely:+                     .+                     > import Lens.Simple+                     .+                     Check it out, it's even one character shorter! +                     .+                     As an illustration of the power of even these elementary combinators, note that the                       <https://github.com/michaelt/lens-family-simple/blob/master/examples/Pong.hs pong example>                       from the @lens@ library requires only this abbreviating change of imports.                       If you care to make that program more complicated, you might at some point need @@ -24,8 +31,8 @@                      It is rarely necessary to exceed the materials exported here when using                      the lenses and quasi-lenses exported by e.g.                       <http://hackage.haskell.org/package/pipes-bytestring pipes-bytestring> -                     or <http://hackage.haskell.org/package/pipes-group pipes-group>. It is for such-                     use-cases that this module is principally intended.+                     or <http://hackage.haskell.org/package/pipes-group pipes-group>. It is simplify+                     the use of such that this module was originally intended.                      .                      Note that many of the other lenses and combinators are a bit more                       specialized than their @Control.Lens@ equivalents: