cabal-version: 1.18 -- This file has been generated from package.yaml by hpack version 0.34.7. -- -- see: https://github.com/sol/hpack name: optics-operators version: 0.1.0.1 x-revision: 1 synopsis: A tiny package containing operators missing from the official package. description: 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} category: Data, Optics, Lenses homepage: https://github.com/qwbarch/optics-operators bug-reports: https://github.com/qwbarch/optics-operators/issues author: qwbarch maintainer: qwbarch license: MIT license-file: LICENSE build-type: Simple extra-doc-files: CHANGELOG.md flag build-readme description: Build the literate haskell README example. manual: False default: False library exposed-modules: Data.Optics.Operators other-modules: Paths_optics_operators hs-source-dirs: src build-depends: base >=4.10 && <5 , mtl ==2.* , optics-core >=0.4 && <1 default-language: Haskell2010 executable readme main-is: README.lhs other-modules: Data.Optics.Operators Paths_optics_operators hs-source-dirs: ./ src ghc-options: -threaded -rtsopts -with-rtsopts=-N -flate-specialise -fspecialise-aggressively -Wall -Wno-name-shadowing -pgmL markdown-unlit build-depends: base >=4.10 && <5 , mtl ==2.* , optics-core >=0.4 && <1 if !flag(build-readme) buildable: False default-language: Haskell2010 test-suite unit-test type: exitcode-stdio-1.0 main-is: Main.hs other-modules: Data.Optics.Operators Paths_optics_operators hs-source-dirs: src test ghc-options: -threaded -rtsopts -with-rtsopts=-N -flate-specialise -fspecialise-aggressively -Wall -Wno-name-shadowing build-depends: base >=4.10 && <5 , mtl ==2.* , optics-core >=0.4 && <1 , tasty >=1.4.3 && <1.6 , tasty-quickcheck >=0.10.2 && <0.11 default-language: Haskell2010