Skip to content

Commit d881cd1

Browse files
committed
Merge pull request #14 from purescript-contrib/first
Use first and second instead of _1 and _2
2 parents 7844c33 + 2519539 commit d881cd1

File tree

16 files changed

+159
-78
lines changed

16 files changed

+159
-78
lines changed

docs/Data/Lens/Common.md

Lines changed: 0 additions & 62 deletions
Original file line numberDiff line numberDiff line change
@@ -2,66 +2,4 @@
22

33
This 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

docs/Data/Lens/Fold.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
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

docs/Data/Lens/Iso/Coproduct.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
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+

docs/Data/Lens/Iso/Product.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
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+

docs/Data/Lens/Lens/Product.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
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+

docs/Data/Lens/Lens/Tuple.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
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+

docs/Data/Lens/Lens/Unit.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
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+

docs/Data/Lens/Lens/Void.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
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+

docs/Data/Lens/Prism.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
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

docs/Data/Lens/Prism/Coproduct.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
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+

0 commit comments

Comments
 (0)