File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff 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```
145145type 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```
160160data Either: A | B
You can’t perform that action at this time.
0 commit comments