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.
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.1, 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-25T02:00:04Z |
Modules
[Index] [Quick Jump]
- Data
- Optics
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 (as included in the package)
Maintainer's Corner
Package maintainers
For package maintainers and hackage trustees