Skip to content
Merged
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 learn/eff/index.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ Note the type we give to `incrCounter`: we use a polymorphic type to make sure t
Usually, we wouldn't write a handler for the `Counter` effect, since we have no way to guarantee that the `globalCounter` hasn't been modified. However, if we wanted to provide an unsafe "escape hatch" for `Counter`, we might do so as follows:

```purescript
foreign import unsafeRunCounter :: forall e. Eff (counter :: COUNTER | e) a -> Eff e a
foreign import unsafeRunCounter :: forall e a. Eff (counter :: COUNTER | e) a -> Eff e a
```

And in JavaScript:
Expand Down