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

This is a package candidate release! Here you can preview how this package release will appear once published to the main package index (which can be accomplished via the 'maintain' link below). Please note that once a package has been published to the main package index it cannot be undone! Please consult the package uploading documentation for more information.

[maintain] [Publish]

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}

Properties

Versions 0.1.0.0, 0.1.0.0, 0.1.0.1
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:52:13Z

Modules

Downloads

Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees