Packages / openSUSE Leap 16.0 / Unspecified / ghc-lens

Package: ghc-lens (5.2.3-bp160.1.11)

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.2-JxlcVnE4fV79iP7hyq1pUf-ghc9.8.3.so()(64bit)

    Package not available

  • dep: libHSStateVar-1.2.2-EU9bLIXEZvc1dycEhgouP3-ghc9.8.3.so()(64bit)

    Package not available

  • dep: libHSadjunctions-4.4.2-grFdmNSMxQII5Xjl4AWNT-ghc9.8.3.so()(64bit)

    Package not available

  • dep: libHSarray-0.5.8.0-f717-ghc9.8.3.so()(64bit)

    Package not available

  • dep: libHSassoc-1.1.1-K6UGKz5R9Rq1oIW2bT5JJx-ghc9.8.3.so()(64bit)

    Package not available

  • dep: libHSbase-4.19.2.0-7e67-ghc9.8.3.so()(64bit)

    Package not available

  • dep: libHSbase-orphans-0.9.2-FYP6wJKaY6zLDp0AvhIrsD-ghc9.8.3.so()(64bit)

    Package not available

  • dep: libHSbifunctors-5.6.2-KLJcZ8t0jlXGkvmVPrt0La-ghc9.8.3.so()(64bit)

    Package not available

  • dep: libHSbinary-0.8.9.1-2b1d-ghc9.8.3.so()(64bit)

    Package not available

  • dep: libHSbytestring-0.12.1.0-d946-ghc9.8.3.so()(64bit)

    Package not available

  • dep: libHScall-stack-0.4.0-7ybhrZDMQUyD7YkgHzf7hR-ghc9.8.3.so()(64bit)

    Package not available

  • dep: libHScomonad-5.0.8-AySgAx8raUo4P6BeiT122X-ghc9.8.3.so()(64bit)

    Package not available

  • dep: libHScontainers-0.6.8-3d10-ghc9.8.3.so()(64bit)

    Package not available

  • dep: libHScontravariant-1.5.5-HWtf2jvTUdL5IaDrUhzC4T-ghc9.8.3.so()(64bit)

    Package not available

  • dep: libHSdeepseq-1.5.1.0-7fa1-ghc9.8.3.so()(64bit)

    Package not available

  • dep: libHSdistributive-0.6.2.1-J2LYQFRcmC1KMEek98k9q2-ghc9.8.3.so()(64bit)

    Package not available

  • dep: libHSexceptions-0.10.7-8d4e-ghc9.8.3.so()(64bit)

    Package not available

  • dep: libHSfilepath-1.4.200.1-0602-ghc9.8.3.so()(64bit)

    Package not available

  • dep: libHSfree-5.2-AeOy7zbg7139AsKkHZcfDN-ghc9.8.3.so()(64bit)

    Package not available

  • dep: libHSghc-bignum-1.3-86c2-ghc9.8.3.so()(64bit)

    Package not available

  • dep: libHSghc-boot-th-9.8.3-2c22-ghc9.8.3.so()(64bit)

    Package not available

  • dep: libHSghc-prim-0.11.0-7710-ghc9.8.3.so()(64bit)

    Package not available

  • dep: libHShashable-1.4.7.0-DE0BBLX0araKfgE0nPBmbC-ghc9.8.3.so()(64bit)

    Package not available

  • dep: libHSindexed-traversable-0.1.4-Dp1PqZWW6tXB2UxqkmPsWU-ghc9.8.3.so()(64bit)

    Package not available

  • dep: libHSindexed-traversable-instances-0.1.2-CIsltnJZsZu5Dcr2izXUoP-ghc9.8.3.so()(64bit)

    Package not available

  • dep: libHSinvariant-0.6.3-6WtR5b3GalRHgukTkWRgWe-ghc9.8.3.so()(64bit)

    Package not available

  • dep: libHSkan-extensions-5.2.6-HZFpzveYSQFFMEsBq7WsDY-ghc9.8.3.so()(64bit)

    Package not available

  • dep: libHSmtl-2.3.1-3b98-ghc9.8.3.so()(64bit)

    Package not available

  • dep: libHSos-string-2.0.6-aCfP7ITtES4fhkwU3leKY-ghc9.8.3.so()(64bit)

    Package not available

  • dep: libHSparallel-3.2.2.0-DJl6laYC5xe8U2n8gritE8-ghc9.8.3.so()(64bit)

    Package not available

  • dep: libHSpretty-1.1.3.6-d27b-ghc9.8.3.so()(64bit)

    Package not available

  • dep: libHSprimitive-0.9.0.0-HUT3FMSbPSW4xtBqF72QHn-ghc9.8.3.so()(64bit)

    Package not available

  • dep: libHSprofunctors-5.6.2-CR0DeJGK3SLGAy1iLIsFFi-ghc9.8.3.so()(64bit)

    Package not available

  • dep: libHSreflection-2.1.8-7nxZSDNNkE83NUjYKoJxmL-ghc9.8.3.so()(64bit)

    Package not available

  • dep: libHSsemigroupoids-6.0.1-851MSfrIZ38BxI7RKPlq9V-ghc9.8.3.so()(64bit)

    Package not available

  • dep: libHSsemigroups-0.20-JyIWJQts7rW3zK9bkEujYD-ghc9.8.3.so()(64bit)

    Package not available

  • dep: libHSstm-2.5.3.1-0272-ghc9.8.3.so()(64bit)

    Package not available

  • dep: libHSstrict-0.5.1-5hp5RF6ZwitK7ZSEKvgNzh-ghc9.8.3.so()(64bit)

    Package not available

  • dep: libHStagged-0.8.8-2Y7l1zdbwcPKWY8UhDljrh-ghc9.8.3.so()(64bit)

    Package not available

  • dep: libHStemplate-haskell-2.21.0.0-c6f5-ghc9.8.3.so()(64bit)

    Package not available

  • dep: libHStext-2.1.1-ce88-ghc9.8.3.so()(64bit)

    Package not available

  • dep: libHSth-abstraction-0.6.0.0-7ISfvUkUbPfFWW3hBu5f3D-ghc9.8.3.so()(64bit)

    Package not available

  • dep: libHSthese-1.2.1-995drC7E7ep223A2J6z98d-ghc9.8.3.so()(64bit)

    Package not available

  • dep: libHStransformers-0.6.1.0-f4c3-ghc9.8.3.so()(64bit)

    Package not available

  • dep: libHStransformers-base-0.4.6-FDMhgMGNpDYARIW05nUmR6-ghc9.8.3.so()(64bit)

    Package not available

  • dep: libHStransformers-compat-0.7.2-IVd2CJXprDi7dqul3mYHSc-ghc9.8.3.so()(64bit)

    Package not available

  • dep: libHSunordered-containers-0.2.20-Bn2WnTXp95g8orfNRnXPGZ-ghc9.8.3.so()(64bit)

    Package not available

  • dep: libHSvector-0.13.1.0-75ZPAA8c6er5BMp6afeeZO-ghc9.8.3.so()(64bit)

    Package not available

  • dep: libHSvector-stream-0.1.0.1-KKpCMW1qHgKG2gBdte8UUn-ghc9.8.3.so()(64bit)

    Package not available

  • dep: libHSvoid-0.7.3-52l0FMTnEeIuFNPN9RS6r-ghc9.8.3.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
aarch64735 KiB5.0 MiBlist of filesDownload
ppc64le1011 KiB7.6 MiBlist of filesDownload
x86_64734 KiB4.8 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-9.8.3/lib/libHSlens-5.2.3-6xrpZKfvVcf12mUryFbg61-ghc9.8.3.so
  • /usr/lib64/ghc-9.8.3/lib/libHSlens-5.2.3-BV4NJ9K8gip2uD8DWyseVX-ghc9.8.3.so
  • /usr/share/licenses/ghc-lens
  • /usr/share/licenses/ghc-lens/LICENSE

Field source: openSUSE Leap 16.0 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-bp160.1.11leap-16.0 / ossaarch64openSUSE Leap 16.0 · OSS · multi-architecture735 KiB5.0 MiBaarch64/ghc-lens-5.2.3-bp160.1.11.aarch64.rpm
5.2.3-bp160.1.11leap-16.0 / ossppc64leopenSUSE Leap 16.0 · OSS · multi-architecture1011 KiB7.6 MiBppc64le/ghc-lens-5.2.3-bp160.1.11.ppc64le.rpm
5.2.3-bp160.1.11leap-16.0 / ossx86_64openSUSE Leap 16.0 · OSS · multi-architecture734 KiB4.8 MiBx86_64/ghc-lens-5.2.3-bp160.1.11.x86_64.rpm

Field source: openSUSE Leap 16.0 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-bp160.1.11 / aarch64Observed Sep 1, 2026sha512 125f3fa2d6f6…22515f0fSource-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): 125f3fa2d6f6c6e8ee3c0db19310f50bc93145a679ed1c328bebfdc76e6b17e5655e114b55fd3b4c2d81fcebdeb8e6db1a5541510f7dd5b6c0a6953922515f0f

Field source: openSUSE Leap 16.0 OSS

5.2.3-bp160.1.11 / ppc64leObserved Sep 1, 2026sha512 95d4ced74f17…503d4726Source-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): 95d4ced74f173e395901d667f0d68914e54dfbacf47923155b560c2485e7041dd5542fda432ecae557d11c6c7cf00f2dac2d67b0181bb0897bfbbbd9503d4726

Field source: openSUSE Leap 16.0 OSS

5.2.3-bp160.1.11 / x86_64Observed Sep 1, 2026sha512 00e76cd8625a…1e7dd67cSource-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): 00e76cd8625a34425b4f8fd8ba23ae0d7e7bd1f2c8b2e330b6ca754fa475638d49ff8e297b55e11194aa165acbd4415681d801a54da34d63ce6bf3961e7dd67c

Field source: openSUSE Leap 16.0 OSS

Sources

  • Authoritative source; repository metadata signature verified

    Signature evidence

    leap-16-0-oss-multiarch:271b36d440253edf9871ac0c100319fc7443d8f2d54b6b449a72e9414c51577c

    Repository-signature verification record
    Signed-object SHA-256
    271b36d440253edf9871ac0c100319fc7443d8f2d54b6b449a72e9414c51577c
    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