Skip to content
This repository was archived by the owner on Oct 23, 2018. It is now read-only.

Commit 970cea5

Browse files
authored
Object -> Record
1 parent 5f09640 commit 970cea5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

text/chapter8.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -549,7 +549,7 @@ The first argument to `Eff` is `(console :: CONSOLE, random :: RANDOM | eff)`. T
549549

550550
The second argument to `Eff` is `Unit`, which is the return type of the computation.
551551

552-
## Objects And Rows
552+
## Records And Rows
553553

554554
Considering the kind of `Eff` allows us to make a deeper connection between extensible effects and records.
555555

@@ -575,7 +575,7 @@ Note that the curly braces have been removed, and there is an extra `Record` con
575575
# Type -> Type
576576
```
577577

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.
579579

580580
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.
581581

@@ -861,7 +861,7 @@ createClass
861861
. ReactSpec props state eff
862862
-> ReactClass props
863863

864-
type Render props state eff =
864+
type Render props state eff
865865
= ReactThis props state
866866
-> Eff ( props :: ReactProps
867867
, refs :: ReactRefs Disallowed

0 commit comments

Comments
 (0)