optics-operators: A tiny package containing operators missing from the official package.
A tiny package containing operators missing from the official package. Basic example using state operators:
newtype Person = Person { age :: Int } deriving (Show, Generic) main :: IO () main = print <=< flip execStateT (Person 0) $ do #age += 50 #age -= 20 -- Output: Person {age = 30}
Flags
Automatic Flags
Name | Description | Default |
---|---|---|
build-readme | Build the literate haskell README example. | Disabled |
Use -f <flag> to enable a flag, or -f -<flag> to disable that flag. More info
Downloads
- optics-operators-0.1.0.1.tar.gz [browse] (Cabal source package)
- Package description (revised from the package)
Note: This package has metadata revisions in the cabal description newer than included in the tarball. To unpack the package including the revisions, use 'cabal get'.
Maintainer's Corner
For package maintainers and hackage trustees
Candidates
Versions [RSS] | 0.1.0.0, 0.1.0.1 (info) |
---|---|
Change log | CHANGELOG.md |
Dependencies | base (>=4.10 && <5), mtl (>=2 && <3), optics-core (>=0.4 && <1) [details] |
License | MIT |
Author | qwbarch |
Maintainer | qwbarch <qwbarch@gmail.com> |
Revised | Revision 1 made by qwbarch at 2023-09-12T03:36:21Z |
Category | Data, Optics, Lenses |
Home page | https://github.com/qwbarch/optics-operators |
Bug tracker | https://github.com/qwbarch/optics-operators/issues |
Uploaded | by qwbarch at 2023-06-25T02:01:16Z |
Distributions | LTSHaskell:0.1.0.1, NixOS:0.1.0.1, Stackage:0.1.0.1 |
Executables | readme |
Downloads | 207 total (14 in the last 30 days) |
Rating | (no votes yet) [estimated by Bayesian average] |
Your Rating | |
Status | Docs available [build log] Last success reported on 2023-06-25 [all 1 reports] |