File tree Expand file tree Collapse file tree 16 files changed +159
-78
lines changed Expand file tree Collapse file tree 16 files changed +159
-78
lines changed Original file line number Diff line number Diff line change 22
33This module defines common lenses and prisms.
44
5- #### ` _Nothing `
6-
7- ``` purescript
8- _Nothing :: forall a b. Prism (Maybe a) (Maybe b) Unit Unit
9- ```
10-
11- #### ` _Just `
12-
13- ``` purescript
14- _Just :: forall a b. Prism (Maybe a) (Maybe b) a b
15- ```
16-
17- Prism for the ` Just ` constructor of ` Maybe ` .
18-
19- #### ` _Left `
20-
21- ``` purescript
22- _Left :: forall a b c. Prism (Either a c) (Either b c) a b
23- ```
24-
25- Prism for the ` Left ` constructor of ` Either ` .
26-
27- #### ` _Right `
28-
29- ``` purescript
30- _Right :: forall a b c. Prism (Either c a) (Either c b) a b
31- ```
32-
33- Prism for the ` Right ` constructor of ` Either ` .
34-
35- #### ` _1 `
36-
37- ``` purescript
38- _1 :: forall a b c. Lens (Tuple a c) (Tuple b c) a b
39- ```
40-
41- Lens for the first component of a ` Tuple ` .
42-
43- #### ` _2 `
44-
45- ``` purescript
46- _2 :: forall a b c. Lens (Tuple c a) (Tuple c b) a b
47- ```
48-
49- Lens for the second component of a ` Tuple ` .
50-
51- #### ` united `
52-
53- ``` purescript
54- united :: forall a. LensP a Unit
55- ```
56-
57- There is a ` Unit ` in everything.
58-
59- #### ` devoid `
60-
61- ``` purescript
62- devoid :: forall a. LensP Void a
63- ```
64-
65- There is everything in ` Void ` .
66-
675
Original file line number Diff line number Diff line change 11## Module Data.Lens.Fold
22
3- This module defines functions for working with getters .
3+ This module defines functions for working with folds .
44
55#### ` preview `
66
Original file line number Diff line number Diff line change 1+ ## Module Data.Lens.Iso.Coproduct
2+
3+ #### ` _Coproduct `
4+
5+ ``` purescript
6+ _Coproduct :: forall f g h i a b. Iso (Coproduct f g a) (Coproduct h i b) (Either (f a) (g a)) (Either (h b) (i b))
7+ ```
8+
9+
Original file line number Diff line number Diff line change 1+ ## Module Data.Lens.Iso.Product
2+
3+ #### ` _Product `
4+
5+ ``` purescript
6+ _Product :: forall f g h i a b. Iso (Product f g a) (Product h i b) (Tuple (f a) (g a)) (Tuple (h b) (i b))
7+ ```
8+
9+
Original file line number Diff line number Diff line change 1+ ## Module Data.Lens.Lens.Product
2+
3+ #### ` _1 `
4+
5+ ``` purescript
6+ _1 :: forall f g h a. Lens (Product f g a) (Product h g a) (f a) (h a)
7+ ```
8+
9+ Lens for the first component of a ` Product ` .
10+
11+ #### ` _2 `
12+
13+ ``` purescript
14+ _2 :: forall f g h a. Lens (Product f g a) (Product f h a) (g a) (h a)
15+ ```
16+
17+ Lens for the second component of a ` Product ` .
18+
19+
Original file line number Diff line number Diff line change 1+ ## Module Data.Lens.Lens.Tuple
2+
3+ #### ` _1 `
4+
5+ ``` purescript
6+ _1 :: forall a b c. Lens (Tuple a c) (Tuple b c) a b
7+ ```
8+
9+ Lens for the first component of a ` Tuple ` .
10+
11+ #### ` _2 `
12+
13+ ``` purescript
14+ _2 :: forall a b c. Lens (Tuple c a) (Tuple c b) a b
15+ ```
16+
17+ Lens for the second component of a ` Tuple ` .
18+
19+
Original file line number Diff line number Diff line change 1+ ## Module Data.Lens.Lens.Unit
2+
3+ #### ` united `
4+
5+ ``` purescript
6+ united :: forall a. LensP a Unit
7+ ```
8+
9+ There is a ` Unit ` in everything.
10+
11+
Original file line number Diff line number Diff line change 1+ ## Module Data.Lens.Lens.Void
2+
3+ #### ` devoid `
4+
5+ ``` purescript
6+ devoid :: forall a. LensP Void a
7+ ```
8+
9+ There is everything in ` Void ` .
10+
11+
Original file line number Diff line number Diff line change 11## Module Data.Lens.Prism
22
3- This module defines functions for working with lenses .
3+ This module defines functions for working with prisms .
44
55#### ` prism `
66
Original file line number Diff line number Diff line change 1+ ## Module Data.Lens.Prism.Coproduct
2+
3+ #### ` _Left `
4+
5+ ``` purescript
6+ _Left :: forall f g h a. Prism (Coproduct f g a) (Coproduct h g a) (f a) (h a)
7+ ```
8+
9+ Prism for the ` left ` of a ` Coproduct ` .
10+
11+ #### ` _Right `
12+
13+ ``` purescript
14+ _Right :: forall f g h a. Prism (Coproduct f g a) (Coproduct f h a) (g a) (h a)
15+ ```
16+
17+ Prism for the ` right ` of a ` Coproduct ` .
18+
19+
You can’t perform that action at this time.
0 commit comments