The minilens package

[Tags:gpl, library]

Lenses satisfy the properties of the Category type class, and are used to inspect and update individual elements of a data structue in a type-safe way. This library provides the simplest possible data types satisfying these properties.

The minilens package aims to provide a very simple improvement on Haskell's record syntax: the idea of composable record accessors called Lenses.

As of yet, there are no fancy Template Haskell APIs for generating lenses programmatically; you are expected to write your lenses by hand. Some handy handy combinator functions are provided to help you do this.

This library was originally part of the Dao package, but has been branched into it's own package in the hopes that it will be useful in a wider variety of projects.

Properties

Versions 0.1.0.0, 0.1.0.1, 0.1.1.0, 0.1.1.1, 1.0.0.0, 1.0.0.1, 1.0.0.2
Dependencies array (>=0.5.0.0 && <0.6.0.0), base (>=4.7 && <4.9), bytestring (>=0.10.0.0 && <0.11.0.0), containers (>=0.5.5.0 && <0.6.0.0), mtl (>=2.2.0 && <=2.2.1), semigroups (>=0.16.2.0 && <=1.0.0.0), text (>=1.2.0.0 && <1.3.0.0), transformers (>=0.3.0.0 && <=0.4.3.0) [details]
License GPL-3
Copyright 2008-2016 Ramin Honary
Author Ramin Honary
Maintainer ramin.honary@gmail.com
Category Data, Lens
Home page https://github.com/RaminHAL9001/minilens
Uploaded Tue May 31 17:23:24 UTC 2016 by RaminHonary
Distributions NixOS:1.0.0.2
Downloads 322 total (7 in the last 30 days)
Votes
1 []
Status Docs not available [build log]
All reported builds failed as of 2016-11-24 [all 3 reports]

Modules

  • Data
    • Lens
      • Data.Lens.Minimal

Downloads

Maintainer's Corner

For package maintainers and hackage trustees