optics-operators: A tiny package containing operators missing from the official package.

[ data, lenses, library, mit, optics ] [ Propose Tags ]

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}

Modules

[Index] [Quick Jump]

Flags

Automatic Flags
NameDescriptionDefault
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

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

Package maintainers

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 156 total (12 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]