tuple-lenses: Stock FieldN combos and generators
This package provides some stock lenses for manipulating multiple elements of a tuple at once. For instance:
> (1,2,3)^._13 (1, 3)
The package provide all lenses that are in increasing order, for FieldN classes 1-9. If you want to swap the order or permute the elements, you need to make your own.
Custom combos are provided by a Template Haskell function.
> ('a','b','c','d') ^. $(tl [4,1,2,3]) ('d','a','b','c')
Downloads
- tuple-lenses-0.1.0.1.tar.gz [browse] (Cabal source package)
- Package description (as included in the package)
Maintainer's Corner
For package maintainers and hackage trustees
Candidates
- No Candidates
Versions [RSS] | 0.1.0.0, 0.1.0.1, 0.1.0.2 |
---|---|
Dependencies | base (>=4.6 && <4.7), lens (>=3.9 && <3.10), template-haskell (>=2.8 && <2.9) [details] |
License | BSD-3-Clause |
Author | Jonathan Fischoff |
Maintainer | jonathangfischoff@gmail.com |
Category | Control |
Home page | http://github.com/jfischoff/tuple-lenses |
Uploaded | by JonathanFischoff at 2013-03-27T03:37:37Z |
Distributions | |
Reverse Dependencies | 1 direct, 0 indirect [details] |
Downloads | 2523 total (10 in the last 30 days) |
Rating | (no votes yet) [estimated by Bayesian average] |
Your Rating | |
Status | Docs uploaded by user Build status unknown [no reports yet] |