SEARCH
NEW RPMS
DIRECTORIES
ABOUT
FAQ
VARIOUS
BLOG

 
 

ghc-lens rpm build for : OpenSuSE. For other distributions click ghc-lens.

Name : ghc-lens
Version : 4.15.1 Vendor : obs://build_opensuse_org/home:so_it_team
Release : 2.7 Date : 2018-11-10 03:28:41
Group : Development/Languages/Other Source RPM : ghc-lens-4.15.1-2.7.src.rpm
Size : 4.72 MB
Packager : (none)
Summary : Lenses, Folds and Traversals
Description :
This package comes \"Batteries Included\" with many useful lenses for the types
commonly used from the Haskell Platform, and with tools for automatically
generating lenses and isomorphisms for user-supplied data types.

The combinators in \'Control.Lens\' provide a highly generic toolbox for
composing families of getters, folds, isomorphisms, traversals, setters and
lenses and their indexed variants.

An overview, with a large number of examples can be found in the
< https://github.com/ekmett/lens#lens-lenses-folds-and-traversals README>.

An introductory video on the style of code used in this library by Simon Peyton
Jones is available from
< http://skillsmatter.com/podcast/scala/lenses-compositional-data-access-and-manipulation
Skills Matter>.

A video on how to use lenses and how they are constructed is available on
< http://youtu.be/cefnmjtAolY?hd=1 youtube>.

Slides for that second talk can be obtained from
< http://comonad.com/haskell/Lenses-Folds-and-Traversals-NYC.pdf comonad.com>.

More information on the care and feeding of lenses, including a brief tutorial
and motivation for their types can be found on the
< https://github.com/ekmett/lens/wiki lens wiki>.

A small game of \'pong\' and other more complex examples that manage their state
using lenses can be found in the
< https://github.com/ekmett/lens/blob/master/examples/ example folder>.

/Lenses, Folds and Traversals/

With some signatures simplified, the core of the hierarchy of lens-like
constructions looks like:

< < http://i.imgur.com/ALlbPRa.png>>

< Hierarchy.png (Local Copy)>

You can compose any two elements of the hierarchy above using \'(.)\' from the
\'Prelude\', and you can use any element of the hierarchy as any type it linked
to above it.

The result is their lowest upper bound in the hierarchy (or an error if that
bound doesn\'t exist).

For instance:

* You can use any \'Traversal\' as a \'Fold\' or as a \'Setter\'.

* The composition of a \'Traversal\' and a \'Getter\' yields a \'Fold\'.

/Minimizing Dependencies/

If you want to provide lenses and traversals for your own types in your own
libraries, then you can do so without incurring a dependency on this (or any
other) lens package at all.

/e.g./ for a data type:

> data Foo a = Foo Int Int a

You can define lenses such as

> -- bar :: Lens\' (Foo a) Int > bar :: Functor f => (Int -> f Int) -> Foo a ->
f (Foo a) > bar f (Foo a b c) = fmap (a\' -> Foo a\' b c) (f a)

> -- quux :: Lens (Foo a) (Foo b) a b > quux :: Functor f => (a -> f b) -> Foo
a -> f (Foo b) > quux f (Foo a b c) = fmap (Foo a b) (f c)

without the need to use any type that isn\'t already defined in the \'Prelude\'.

And you can define a traversal of multiple fields with
\'Control.Applicative.Applicative\':

> -- traverseBarAndBaz :: Traversal\' (Foo a) Int > traverseBarAndBaz ::
Applicative f => (Int -> f Int) -> Foo a -> f (Foo a) > traverseBarAndBaz f
(Foo a b c) = Foo < $> f a < *> f b < *> pure c

What is provided in this library is a number of stock lenses and traversals for
common haskell types, a wide array of combinators for working them, and more
exotic functionality, (/e.g./ getters, setters, indexed folds, isomorphisms).

RPM found in directory: /packages/linux-pbone/ftp5.gwdg.de/pub/opensuse/repositories/home:/so_it_team:/12.x/SLE_12_SP4/x86_64

Content of RPM  Changelog  Provides Requires

Hmm ... It's impossible ;-) This RPM doesn't exist on any FTP server

Provides :
ghc-lens
ghc-lens(x86-64)
libHSlens-4.15.1-5q1oB8AgN9RBgrGga5zBAq-ghc8.0.2.so()(64bit)

Requires :
libc.so.6()(64bit)
libHSfree-4.12.4-6K6nOfmb6Jc4Wi2i9C9PQv-ghc8.0.2.so()(64bit)
libHStagged-0.8.5-1mTloBSoUxv8dqUr8XBGBt-ghc8.0.2.so()(64bit)
libHSpretty-1.1.3.3-ghc8.0.2.so()(64bit)
libHScontainers-0.5.7.1-ghc8.0.2.so()(64bit)
libHSghc-prim-0.5.0.0-ghc8.0.2.so()(64bit)
libHSvector-0.11.0.0-LMwQhhnXj8U3T5Bm1JFxG-ghc8.0.2.so()(64bit)
libHStransformers-0.5.2.0-ghc8.0.2.so()(64bit)
libHSdeepseq-1.4.2.0-ghc8.0.2.so()(64bit)
libHSmtl-2.2.1-BLKBelFsPB3BoFeSWSOYj6-ghc8.0.2.so()(64bit)
libHSbifunctors-5.4.1-CtJbd8NGNCQFTrCJ5v9M90-ghc8.0.2.so()(64bit)
libHSbase-4.9.1.0-ghc8.0.2.so()(64bit)
libHSbinary-0.8.3.0-ghc8.0.2.so()(64bit)
libHSprofunctors-5.2-Lx1QyZeSdfWMS55IE6cyW-ghc8.0.2.so()(64bit)
libHSprimitive-0.6.1.0-6AbSTw9JXz141LE5p6LGH-ghc8.0.2.so()(64bit)
libHStext-1.2.2.1-FwvWBfkNJh1I1NMMegz0uY-ghc8.0.2.so()(64bit)
libHSstm-2.4.4.1-JQn4hNPyYjP5m9AcbI88Ve-ghc8.0.2.so()(64bit)
libHSvoid-0.7.1-LqmDeLUOUcG8WFzSs4VdFc-ghc8.0.2.so()(64bit)
libHSbase-orphans-0.5.4-ABoxiBf7nXc7Qqh66CgYc9-ghc8.0.2.so()(64bit)
libgmp.so.10()(64bit)
libc.so.6(GLIBC_2.2.5)(64bit)
libc.so.6(GLIBC_2.14)(64bit)
libHSfilepath-1.4.1.1-ghc8.0.2.so()(64bit)
libHSdistributive-0.5.2-JCgfTXNR3ywAyV7fFWIBI5-ghc8.0.2.so()(64bit)
libHShashable-1.2.5.0-3jyU6ITgVDsZjJvM61wsx-ghc8.0.2.so()(64bit)
libHSsemigroups-0.18.2-GvTCUro9Hym1wGKOLNRfUA-ghc8.0.2.so()(64bit)
libHSghc-boot-th-8.0.2-ghc8.0.2.so()(64bit)
libHStransformers-compat-0.5.1.4-IuFogs8HAVUJBWVNMhtssu-ghc8.0.2.so()(64bit)
rpmlib(PayloadFilesHavePrefix) <= 4.0-1
libHStemplate-haskell-2.11.1.0-ghc8.0.2.so()(64bit)
libHSsemigroupoids-5.1-DRhnFASmw5ZJiNmywmcRwp-ghc8.0.2.so()(64bit)
libHSarray-0.5.1.1-ghc8.0.2.so()(64bit)
libHSprelude-extras-0.4.0.3-BhL9U5k7NtGJn1itwIHt2Y-ghc8.0.2.so()(64bit)
libHSStateVar-1.1.0.4-5dJbnTVECtEAhfJXPZKdbO-ghc8.0.2.so()(64bit)
rpmlib(CompressedFileNames) <= 3.0.4-1
libHSbytestring-0.10.8.1-ghc8.0.2.so()(64bit)
libHSreflection-2.1.2-Bem12O1xFGSHr4C2Hyu1c4-ghc8.0.2.so()(64bit)
libHScontravariant-1.4-5IwlURTIVT0CbgRM4HeJyD-ghc8.0.2.so()(64bit)
rpmlib(PayloadIsLzma) <= 4.4.6-1
libHSunordered-containers-0.2.7.2-CCGHIBvU8ua1YYN1Bs8HVt-ghc8.0.2.so()(64bit)
libHScomonad-5-rYBCXoyzVqBKKrkDSryZ5-ghc8.0.2.so()(64bit)
libHSadjunctions-4.3-ANmAEPMoHCFEs3CntxB5Ha-ghc8.0.2.so()(64bit)
libHSexceptions-0.8.3-ADEDRATtUrMK1JW4zMQ9U-ghc8.0.2.so()(64bit)
libHSparallel-3.2.1.0-CNlrARikHUx7Z7NHwpxRS3-ghc8.0.2.so()(64bit)
libHSkan-extensions-5.0.1-HMjc3H1IUACD2nCDRPzntQ-ghc8.0.2.so()(64bit)
libHSinteger-gmp-1.0.0.1-ghc8.0.2.so()(64bit)


Content of RPM :
/usr/lib64/ghc-8.0.2/lens-4.15.1-5q1oB8AgN9RBgrGga5zBAq
/usr/lib64/ghc-8.0.2/lens-4.15.1-5q1oB8AgN9RBgrGga5zBAq/libHSlens-4.15.1-5q1oB8AgN9RBgrGga5zBAq-ghc8.0.2.so
/usr/share/doc/packages/ghc-lens
/usr/share/doc/packages/ghc-lens/LICENSE

 
ICM