You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: text/chapter8.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -549,7 +549,7 @@ The first argument to `Eff` is `(console :: CONSOLE, random :: RANDOM | eff)`. T
549
549
550
550
The second argument to `Eff` is `Unit`, which is the return type of the computation.
551
551
552
-
## Objects And Rows
552
+
## Records And Rows
553
553
554
554
Considering the kind of `Eff` allows us to make a deeper connection between extensible effects and records.
555
555
@@ -575,7 +575,7 @@ Note that the curly braces have been removed, and there is an extra `Record` con
575
575
# Type -> Type
576
576
```
577
577
578
-
That is, `Object` is a type constructor which takes a _row of types_ and constructs a type. This is what allows us to write row-polymorphic functions on records.
578
+
That is, `Record` is a type constructor which takes a _row of types_ and constructs a type. This is what allows us to write row-polymorphic functions on records.
579
579
580
580
The type system uses the same machinery to handle extensible effects as is used for row-polymorphic records (or _extensible records_). The only difference is the _kind_ of the types appearing in the labels. Records are parameterized by a row of types, and `Eff` is parameterized by a row of effects.
0 commit comments