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
2 changes: 1 addition & 1 deletion chapters/primitive-haskell.md
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,7 @@ removed](https://github.com/haskell/primitive/pull/19). In fact, at the time
you're reading this, it may already be gone!

`PrimState` is an associated type giving the type of the state token. For `IO`,
that's `RealWorld, and for `ST s`, it's `s`. `primitive` gives a way to lift
that's `RealWorld`, and for `ST s`, it's `s`. `primitive` gives a way to lift
the internal implementation of both `IO` and `ST` to the monad under question.

__Exercise__: Write implementations of the `PrimMonad IO` and `PrimMonad (ST s)` instances, and compare against the real ones.
Expand Down