Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions text/chapter3.md
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ For illustration purposes, let's define a primitive function that takes any two
> Note that if you use `:type` to ask about the type of `constantlyFirst`, it will be more verbose:
>
> ```text
> : type constantlyFirst
> > :type constantlyFirst
> forall (a :: Type) (b :: Type). a -> b -> a
> ```
>
Expand All @@ -292,10 +292,10 @@ We don't have to indicate in code that we want to specialize a quantified type
While we can choose any types for `a` and `b`, the return type of `constantlyFirst` has to be the same as the type of the first argument (because both of them are "tied" to the same `a`):

```text
:type constantlyFirst true "ignored"
> :type constantlyFirst true "ignored"
Boolean

:type constantlyFirst "keep" 3
> :type constantlyFirst "keep" 3
String
```

Expand Down