Packages / openSUSE Leap 15.6 / Unspecified / ghc-lens

Package: ghc-lens (5.2.3-bp156.1.2)

Lenses, Folds and Traversals

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>> <https://raw.githubusercontent.com/ekmett/lens/master/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).

Other Packages Related to ghc-lens:

  • dep: libHSOneTuple-0.4.1.1-4HwKIV844xZDyWfdUV6ttx-ghc8.10.7.so()(64bit)

    Package not available

  • dep: libHSStateVar-1.2.2-E5VfLD39xuSBKKtL6sMcfd-ghc8.10.7.so()(64bit)

    Package not available

  • dep: libHSadjunctions-4.4.2-IXpAUlZkisq23n8yvkND1p-ghc8.10.7.so()(64bit)

    Package not available

  • dep: libHSarray-0.5.4.0-ghc8.10.7.so()(64bit)

    Package not available

  • dep: libHSassoc-1.1-5xmE7jlk2fP4tfEMsOYYmp-ghc8.10.7.so()(64bit)

    Package not available

  • dep: libHSbase-4.14.3.0-ghc8.10.7.so()(64bit)

    Package not available

  • dep: libHSbase-orphans-0.9.1-c9SWeL8IJjH2h1UCckt6-ghc8.10.7.so()(64bit)

    Package not available

  • dep: libHSbifunctors-5.6.1-L60PaumcyUcLBs0pC2Ls5u-ghc8.10.7.so()(64bit)

    Package not available

  • dep: libHSbinary-0.8.8.0-ghc8.10.7.so()(64bit)

    Package not available

  • dep: libHSbytestring-0.10.12.0-ghc8.10.7.so()(64bit)

    Package not available

  • dep: libHScall-stack-0.4.0-FmELR2iAK4CCMyR5yqUtbg-ghc8.10.7.so()(64bit)

    Package not available

  • dep: libHScomonad-5.0.8-9MHDh5eIAMF2EzwcMAfQL6-ghc8.10.7.so()(64bit)

    Package not available

  • dep: libHScontainers-0.6.5.1-ghc8.10.7.so()(64bit)

    Package not available

  • dep: libHScontravariant-1.5.5-2MQmXMLz5bRS9nNwqvWJW-ghc8.10.7.so()(64bit)

    Package not available

  • dep: libHSdata-array-byte-0.1.0.1-K28hjVtnMmk7as6rZ7LlwO-ghc8.10.7.so()(64bit)

    Package not available

  • dep: libHSdeepseq-1.4.4.0-ghc8.10.7.so()(64bit)

    Package not available

  • dep: libHSdistributive-0.6.2.1-1ifv3eYNSf64qRfM65O3VK-ghc8.10.7.so()(64bit)

    Package not available

  • dep: libHSexceptions-0.10.4-ghc8.10.7.so()(64bit)

    Package not available

  • dep: libHSfilepath-1.4.2.1-ghc8.10.7.so()(64bit)

    Package not available

  • dep: libHSfoldable1-classes-compat-0.1-4mkkbjqB24N8I1Ggf7NKw2-ghc8.10.7.so()(64bit)

    Package not available

  • dep: libHSfree-5.1.10-Fecbsu6dmm8WzxCCez2UJ-ghc8.10.7.so()(64bit)

    Package not available

  • dep: libHSghc-boot-th-8.10.7-ghc8.10.7.so()(64bit)

    Package not available

  • dep: libHSghc-prim-0.6.1-ghc8.10.7.so()(64bit)

    Package not available

  • dep: libHShashable-1.4.3.0-AzG4Pc6M4Qh6F2y4DtKgD2-ghc8.10.7.so()(64bit)

    Package not available

  • dep: libHSindexed-traversable-0.1.3-F3jrcyz30bgEFtVuBpEUub-ghc8.10.7.so()(64bit)

    Package not available

  • dep: libHSindexed-traversable-instances-0.1.1.2-G61ndLzm9bv5Hz00Z1qZkr-ghc8.10.7.so()(64bit)

    Package not available

  • dep: libHSinteger-gmp-1.0.3.0-ghc8.10.7.so()(64bit)

    Package not available

  • dep: libHSinvariant-0.6.2-K5avWHH6atn3Yc6M3uKfh5-ghc8.10.7.so()(64bit)

    Package not available

  • dep: libHSkan-extensions-5.2.5-895t2SHnFoxHLxHuXrcCUy-ghc8.10.7.so()(64bit)

    Package not available

  • dep: libHSmtl-2.2.2-ghc8.10.7.so()(64bit)

    Package not available

  • dep: libHSparallel-3.2.2.0-5tpUOKTbMKI9Fb3eRAjLPV-ghc8.10.7.so()(64bit)

    Package not available

  • dep: libHSpretty-1.1.3.6-ghc8.10.7.so()(64bit)

    Package not available

  • dep: libHSprimitive-0.8.0.0-7GvTqDWvNsdIftJV9fdokB-ghc8.10.7.so()(64bit)

    Package not available

  • dep: libHSprofunctors-5.6.2-5VVzFShKt6cCUCcvOpJnSL-ghc8.10.7.so()(64bit)

    Package not available

  • dep: libHSreflection-2.1.6-1RKvvtSXPHX5jtreG3t0uM-ghc8.10.7.so()(64bit)

    Package not available

  • dep: libHSsemigroupoids-6.0.0.1-pfQLqTzynj8gCMFdGR8To-ghc8.10.7.so()(64bit)

    Package not available

  • dep: libHSsemigroups-0.20-FZjiGBNcT8oCePR0rFdXVr-ghc8.10.7.so()(64bit)

    Package not available

  • dep: libHSstm-2.5.0.1-ghc8.10.7.so()(64bit)

    Package not available

  • dep: libHSstrict-0.5-4TfLPZovwAw2Wx0y4obQrM-ghc8.10.7.so()(64bit)

    Package not available

  • dep: libHStagged-0.8.8-AkG3jTuGR0jE7pjMYWU5z5-ghc8.10.7.so()(64bit)

    Package not available

  • dep: libHStemplate-haskell-2.16.0.0-ghc8.10.7.so()(64bit)

    Package not available

  • dep: libHStext-1.2.4.1-ghc8.10.7.so()(64bit)

    Package not available

  • dep: libHSth-abstraction-0.5.0.0-Qpu8BO6TCqB7afDrQPFfI-ghc8.10.7.so()(64bit)

    Package not available

  • dep: libHSthese-1.2-G6KYqbfrUb9KQ9FN7V8JG4-ghc8.10.7.so()(64bit)

    Package not available

  • dep: libHStransformers-0.5.6.2-ghc8.10.7.so()(64bit)

    Package not available

  • dep: libHStransformers-base-0.4.6-LLu0NXvw3mID0pTTzLzopF-ghc8.10.7.so()(64bit)

    Package not available

  • dep: libHStransformers-compat-0.7.2-1KC3IXOcuxMEnmo4oqBwTm-ghc8.10.7.so()(64bit)

    Package not available

  • dep: libHSunordered-containers-0.2.20-HklsaqmbfhphRcLDSbMTC-ghc8.10.7.so()(64bit)

    Package not available

  • dep: libHSvector-0.13.1.0-FrnJWV7JTzZBoqufN7KMEY-ghc8.10.7.so()(64bit)

    Package not available

  • dep: libHSvector-stream-0.1.0.1-CAjZpdJHuP0B3cWISynNAe-ghc8.10.7.so()(64bit)

    Package not available

  • dep: libHSvoid-0.7.3-3i5hA4IaTNJ61Beo1uYNP7-ghc8.10.7.so()(64bit)

    Package not available

  • dep: libgmp.so.10()(64bit)

    Package not available

  • dep: libm.so.6()(64bit)

    Package not available

  • dep: libc.so.6(GLIBC_2.17)(64bit)

    Package not available

Download ghc-lens

ArchitecturePackage sizeInstalled sizeFilesPackage
aarch64950 KiB6.6 MiBlist of filesDownload
ppc64le906 KiB7.7 MiBlist of filesDownload
s390x1.1 MiB9.2 MiBlist of filesDownload
x86_64687 KiB4.9 MiBlist of filesDownload

Package file paths (4)

Paths come from the repository package-file index for the observed builds. They describe archive/package associations, not every file that will exist on a running system after maintainer scripts, alternatives, generated state, diversions, or installation choices.

  • /usr/lib64/ghc-8.10.7/lens-5.2.3
  • /usr/lib64/ghc-8.10.7/lens-5.2.3/libHSlens-5.2.3-E4d462JXCNmB76v2LXkpv4-ghc8.10.7.so
  • /usr/share/licenses/ghc-lens
  • /usr/share/licenses/ghc-lens/LICENSE

Field source: openSUSE Leap 15.6 OSS

Versions, suites, and repositories

Each row is recorded package-index metadata for one version, architecture, suite, and repository. Names, URLs, and sizes are source-reported; a link is a potentially mutable retrieval location, not an OpenFactory redistribution claim or proof that OpenFactory retained the artifact bytes.

VersionReleaseArchitectureRepositoryPackage sizeInstalled sizePublisher repository artifact
5.2.3-bp156.1.2leap-15.6 / ossaarch64openSUSE Leap 15.6 · OSS · multi-architecture950 KiB6.6 MiBaarch64/ghc-lens-5.2.3-bp156.1.2.aarch64.rpm
5.2.3-bp156.1.2leap-15.6 / ossppc64leopenSUSE Leap 15.6 · OSS · multi-architecture906 KiB7.7 MiBppc64le/ghc-lens-5.2.3-bp156.1.2.ppc64le.rpm
5.2.3-bp156.1.2leap-15.6 / osss390xopenSUSE Leap 15.6 · OSS · multi-architecture1.1 MiB9.2 MiBs390x/ghc-lens-5.2.3-bp156.1.2.s390x.rpm
5.2.3-bp156.1.2leap-15.6 / ossx86_64openSUSE Leap 15.6 · OSS · multi-architecture687 KiB4.9 MiBx86_64/ghc-lens-5.2.3-bp156.1.2.x86_64.rpm

Field source: openSUSE Leap 15.6 OSS

Known vulnerabilities

No matching advisories in the tracked sources.

Last synced:

[CVE catalog]

Checksums

Repository signatures authenticate metadata. Artifact hashing is recorded separately. Neither establishes package safety.

5.2.3-bp156.1.2 / aarch64Observed Sep 1, 2026sha512 51e8d9085c96…d56416e3Source-reported digest

Metadata observed; artifact bytes were not independently fetched or hashed by this catalog import. The digest below is source-reported.

Source-reported digest (sha512): 51e8d9085c965b2f3a333e18c1fc99534ab66725a1fe4f3042f0deec8674649ec70a7a7b43a1e1c580ee29fc70a796586aa50785afd61e136d583b03d56416e3

Field source: openSUSE Leap 15.6 OSS

5.2.3-bp156.1.2 / ppc64leObserved Sep 1, 2026sha512 f5e32a44e9cb…ddfecc15Source-reported digest

Metadata observed; artifact bytes were not independently fetched or hashed by this catalog import. The digest below is source-reported.

Source-reported digest (sha512): f5e32a44e9cb06f22ae3c63671e0dceb7b228d004d463bc992aa6cffb2ea7625f9816b9d4cd296f4fb69f088c9f1cf4be8a37ebea2c687ea580a2a9cddfecc15

Field source: openSUSE Leap 15.6 OSS

5.2.3-bp156.1.2 / s390xObserved Sep 1, 2026sha512 a68faef8d665…8dabc777Source-reported digest

Metadata observed; artifact bytes were not independently fetched or hashed by this catalog import. The digest below is source-reported.

Source-reported digest (sha512): a68faef8d665d6e39789b7cf4cfa8fdab82c978bd08264b0d7c9adb399260381057a2e38d99b8eb6273cdf520dc3875d0a8c8239865e3505418ef3ee8dabc777

Field source: openSUSE Leap 15.6 OSS

5.2.3-bp156.1.2 / x86_64Observed Sep 1, 2026sha512 fc6175f47168…e51b3f96Source-reported digest

Metadata observed; artifact bytes were not independently fetched or hashed by this catalog import. The digest below is source-reported.

Source-reported digest (sha512): fc6175f471682e3f3d2db54249762f5a5d6342891eeff258199d93d615805af5926d3450f781564462a7a7dd4628367ef14065406a1a0a64bc6f1cd1e51b3f96

Field source: openSUSE Leap 15.6 OSS

Sources

  • Authoritative source; repository metadata signature verified

    Signature evidence

    leap-15-6-oss-multiarch:ca2653101b9afba6656aea529109ba0c0f1ca1a92aa8614e7c887fda5264c230

    Repository-signature verification record
    Signed-object SHA-256
    ca2653101b9afba6656aea529109ba0c0f1ca1a92aa8614e7c887fda5264c230
    Signer fingerprint
    AD485664E901B867051AB15F35A2F86E29B700A4
    Keyring revision
    opensuse-project-signing-key.asc
    SHA-256 b5745739ebfb95b25b8e810f9bcb847fe750ccda598bd85f02f0e974599a6d7e
    Tool and policy
    gpgv (GnuPG) 2.4.9
    openfactory-software-catalog-signature-v1
    Verification time
    Sep 1, 2026
    Repository metadata hash linkage
    Result
    Recorded as verified; digest details unavailable