The tuple-lenses package

[Tags:bsd3, library]

This package provides some stock lenses for swizzling tuple elements. 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')

Properties

Versions 0.1.0.0, 0.1.0.1, 0.1.0.2
Dependencies base (==4.6.*), lens (==3.9.*), template-haskell (==2.8.*) [details]
License BSD3
Author Jonathan Fischoff
Maintainer jonathangfischoff@gmail.com
Stability Unknown
Category Control
Home page http://github.com/jfischoff/tuple-lenses
Uploaded Thu Mar 28 05:38:34 UTC 2013 by JonathanFischoff
Distributions NixOS:0.1.0.2
Downloads 603 total (7 in the last 30 days)
Votes
0 []
Status Docs uploaded by user
Build status unknown [no reports yet]

Modules

[Index]

Downloads

Maintainer's Corner

For package maintainers and hackage trustees