SEARCH
NEW RPMS
DIRECTORIES
ABOUT
FAQ
VARIOUS
BLOG

 
 

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

Name : ghc-lens
Version : 5.1 Vendor : openSUSE
Release : bp154.1.15 Date : 2022-05-09 13:06:10
Group : Unspecified Source RPM : ghc-lens-5.1-bp154.1.15.src.rpm
Size : 4.78 MB
Packager : https://bugs_opensuse_org
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>>

< images/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/openSUSE:/Backports:/SLE-15-SP4/standard/x86_64

Content of RPM  Changelog  Provides Requires

Download
ftp.icm.edu.pl  ghc-lens-5.1-bp154.1.15.x86_64.rpm
ftp.icm.edu.pl  ghc-lens-5.1-bp154.1.15.x86_64.rpm
     

Provides :
ghc-lens
ghc-lens(x86-64)
libHSlens-5.1-FgbP1JfYeuJLm8bUEtxhJi-ghc8.10.7.so()(64bit)

Requires :
libHSOneTuple-0.3.1-3GxxbhOSBHi4ceOVAky4Ok-ghc8.10.7.so()(64bit)
libHSStateVar-1.2.2-E5VfLD39xuSBKKtL6sMcfd-ghc8.10.7.so()(64bit)
libHSadjunctions-4.4-EvTSypNZJyPYBCxPlRBi4-ghc8.10.7.so()(64bit)
libHSarray-0.5.4.0-ghc8.10.7.so()(64bit)
libHSassoc-1.0.2-7VWyDvIfjdz2d4cTJtl7KY-ghc8.10.7.so()(64bit)
libHSbase-4.14.3.0-ghc8.10.7.so()(64bit)
libHSbase-orphans-0.8.6-8jdORGUoOgxDxHbvgXV8Fx-ghc8.10.7.so()(64bit)
libHSbifunctors-5.5.11-3KJa8Fa25OR8O7oOaPlQiC-ghc8.10.7.so()(64bit)
libHSbinary-0.8.8.0-ghc8.10.7.so()(64bit)
libHSbytestring-0.10.12.0-ghc8.10.7.so()(64bit)
libHScall-stack-0.4.0-FmELR2iAK4CCMyR5yqUtbg-ghc8.10.7.so()(64bit)
libHScomonad-5.0.8-9T1IsYjyTwqP2den7QMer-ghc8.10.7.so()(64bit)
libHScontainers-0.6.5.1-ghc8.10.7.so()(64bit)
libHScontravariant-1.5.5-2MQmXMLz5bRS9nNwqvWJW-ghc8.10.7.so()(64bit)
libHSdeepseq-1.4.4.0-ghc8.10.7.so()(64bit)
libHSdistributive-0.6.2.1-2enHeVVZXhxHGdVD0mvkOz-ghc8.10.7.so()(64bit)
libHSexceptions-0.10.4-ghc8.10.7.so()(64bit)
libHSfilepath-1.4.2.1-ghc8.10.7.so()(64bit)
libHSfree-5.1.7-I4cGhKDNaOW6kpmDXPTVcf-ghc8.10.7.so()(64bit)
libHSghc-boot-th-8.10.7-ghc8.10.7.so()(64bit)
libHSghc-prim-0.6.1-ghc8.10.7.so()(64bit)
libHShashable-1.3.5.0-IGX0XxzDT1f2AkNytPe4lH-ghc8.10.7.so()(64bit)
libHSindexed-traversable-0.1.2-Eo535BQju5EJMNNLLeinJ3-ghc8.10.7.so()(64bit)
libHSindexed-traversable-instances-0.1.1-DdhYyZhWqnnHTINtbhx4As-ghc8.10.7.so()(64bit)
libHSinteger-gmp-1.0.3.0-ghc8.10.7.so()(64bit)
libHSinvariant-0.5.5-CcnePAoBke4JE46ok5iCfy-ghc8.10.7.so()(64bit)
libHSkan-extensions-5.2.3-7uMznRvgp0RHEbQ5OwcVmr-ghc8.10.7.so()(64bit)
libHSmtl-2.2.2-ghc8.10.7.so()(64bit)
libHSparallel-3.2.2.0-5tpUOKTbMKI9Fb3eRAjLPV-ghc8.10.7.so()(64bit)
libHSpretty-1.1.3.6-ghc8.10.7.so()(64bit)
libHSprimitive-0.7.3.0-HMedJdQUTCQ79SiIUfisnA-ghc8.10.7.so()(64bit)
libHSprofunctors-5.6.2-FO9SAOqO3HZ4JNvgjnf6j2-ghc8.10.7.so()(64bit)
libHSreflection-2.1.6-1RKvvtSXPHX5jtreG3t0uM-ghc8.10.7.so()(64bit)
libHSsemigroupoids-5.3.7-BmVfY0WWzsmi5KxbMo2JB-ghc8.10.7.so()(64bit)
libHSsemigroups-0.20-FZjiGBNcT8oCePR0rFdXVr-ghc8.10.7.so()(64bit)
libHSstm-2.5.0.1-ghc8.10.7.so()(64bit)
libHSstrict-0.4.0.1-CfB1LTmmUwYGE3xArIJ0Jl-ghc8.10.7.so()(64bit)
libHStagged-0.8.6.1-EiQY3za6Q5HE9cdvqupke2-ghc8.10.7.so()(64bit)
libHStemplate-haskell-2.16.0.0-ghc8.10.7.so()(64bit)
libHStext-1.2.4.1-ghc8.10.7.so()(64bit)
libHSth-abstraction-0.4.3.0-FMje8SMcvo6Ej3bhfOvFnc-ghc8.10.7.so()(64bit)
libHSthese-1.1.1.1-6Ghr9sueS03DzgDHpSqlqX-ghc8.10.7.so()(64bit)
libHStransformers-0.5.6.2-ghc8.10.7.so()(64bit)
libHStransformers-base-0.4.6-FGit2u03KRL5dithl1smLQ-ghc8.10.7.so()(64bit)
libHStransformers-compat-0.7.1-mAaCateuAAIN90jMDE64V-ghc8.10.7.so()(64bit)
libHSunordered-containers-0.2.16.0-Hc1TBzPOi9ULFbaiEHiY8F-ghc8.10.7.so()(64bit)
libHSvector-0.12.3.1-4ZUkvMG0hba9AHoOHt8bPP-ghc8.10.7.so()(64bit)
libHSvoid-0.7.3-3i5hA4IaTNJ61Beo1uYNP7-ghc8.10.7.so()(64bit)
libc.so.6()(64bit)
libc.so.6(GLIBC_2.14)(64bit)
libc.so.6(GLIBC_2.2.5)(64bit)
libgmp.so.10()(64bit)
libm.so.6()(64bit)
rpmlib(CompressedFileNames) <= 3.0.4-1
rpmlib(FileDigests) <= 4.6.0-1
rpmlib(PayloadFilesHavePrefix) <= 4.0-1
rpmlib(PayloadIsXz) <= 5.2-1


Content of RPM :
/usr/lib64/ghc-8.10.7/lens-5.1
/usr/lib64/ghc-8.10.7/lens-5.1/libHSlens-5.1-FgbP1JfYeuJLm8bUEtxhJi-ghc8.10.7.so
/usr/share/licenses/ghc-lens
/usr/share/licenses/ghc-lens/LICENSE

 
ICM