Skip to content

Add prompt signs in accordance to the intro #477

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
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