-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathoptics-operators.cabal
83 lines (77 loc) · 2.35 KB
/
optics-operators.cabal
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
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.2
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 <[email protected]>
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