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

[ data, lenses, library, mit, optics ] [ Propose Tags ]
This version is deprecated.

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

[Last Documentation]

  • Data
    • Optics
      • Data.Optics.Operators

Downloads

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>
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-24T09:58:02Z
Distributions LTSHaskell:0.1.0.1, NixOS:0.1.0.1, Stackage:0.1.0.1
Executables readme
Downloads 186 total (11 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs not available [build log]
All reported builds failed as of 2023-06-24 [all 2 reports]