|
| Generics.Pointless.Lenses.Examples.Examples | | Portability | non-portable | | Stability | experimental | | Maintainer | hpacheco@di.uminho.pt |
|
|
|
| Description |
Pointless Lenses:
bidirectional lenses with point-free programming
This module provides examples, examples and more examples.
|
|
| Synopsis |
|
|
|
| Documentation |
|
|
| Integer successor lens.
|
|
|
| List length lens.
|
|
|
| List length using an accumulation (after simplification into an hylomorphism).
Uses Int instead of Nat because succ on Nat is not a valid lens.
|
|
|
| List zipping lens.
The aux transformation is merely for simplifying the constant argument
|
|
|
| Take the first n elements from a list
|
|
|
| List filtering lens.
The argument passed to snd_lns can be undefined because it will never be used
|
|
|
| Binary list concatenation.
Lens hylomorphisms can be defined as the composition of a catamorphism after an anamorphism.
|
|
|
| Binary list transposition.
Binary version of transpose.
|
|
|
|
|
| Sum of a list of integers.
|
|
|
|
|
|
|
| Flatten a tree.
|
|
|
| List concatenation.
|
|
|
| List mapping lens.
|
|
|
| Generic mapping example using user-defined concrete generators
| | Constructors | | Instances | |
|
|
|
|
| Produced by Haddock version 2.7.2 |