-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.yaml
76 lines (69 loc) · 1.66 KB
/
package.yaml
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
name: optics-operators
version: 0.1.0.2
license: MIT
license-file: LICENSE
author: qwbarch
maintainer: qwbarch <[email protected]>
category: Data, Optics, Lenses
homepage: https://github.com/qwbarch/optics-operators
bug-reports: https://github.com/qwbarch/optics-operators/issues
extra-doc-files: CHANGELOG.md
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}
flags:
build-readme:
description: "Build the literate haskell README example."
default: false
manual: false
library:
source-dirs:
- src
executables:
readme:
when:
condition: "!flag(build-readme)"
buildable: False
main: README.lhs
source-dirs:
- .
- src
ghc-options:
- -threaded
- -rtsopts
- -with-rtsopts=-N
- -flate-specialise
- -fspecialise-aggressively
- -Wall
- -Wno-name-shadowing
- -pgmL markdown-unlit
tests:
unit-test:
main: Main.hs
source-dirs:
- src
- test
dependencies:
- tasty >= 1.4.3 && < 1.6
- tasty-quickcheck >= 0.10.2 && < 0.11
ghc-options:
- -threaded
- -rtsopts
- -with-rtsopts=-N
- -flate-specialise
- -fspecialise-aggressively
- -Wall
- -Wno-name-shadowing
dependencies:
- base >= 4.10 && < 5
- optics-core >= 0.4 && < 1
- mtl >= 2 && < 3