Skip to content

Commit 0021391

Browse files
committed
proofs
1 parent 6e2804f commit 0021391

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

content/category.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -138,8 +138,8 @@ projA =? valueA && projB =? valueB !! mustBeEqual
138138
```
139139

140140
<aside>
141-
<p>In fact, this is a syntactic sugar: <code>data</code> is a macro coming with a standard library, which expends into
142-
the code defining type, constructor function and two projections:</p>
141+
<p>In fact, this is a syntactic sugar: <code>data</code> is a macro coming with the standard library, which expends into
142+
this code, defining type, constructor function and two projections:</p>
143143

144144
```
145145
type Prod
@@ -153,8 +153,8 @@ type `.b`: self Prod -> B
153153
</aside>
154154

155155
*Co-product data types* are bi-functors corresponding to the morphism in the $\mathbf{Cation^\mathrm{op}}$: they
156-
map a union of sets representing all possible values in $L$ and $R$ to a new category $S$. Cation union with a
157-
pipe operator (`|`) and the new type may be defined in the following way:
156+
map a union of sets representing all possible values in $L$ and $R$ to a new category $S$: $S \doteqdot L + R$. Cation
157+
union with a pipe operator (`|`) and the new type may be defined in the following way:
158158

159159
```
160160
data Either: A | B

0 commit comments

Comments
 (0)