Skip to content

Commit 031ea9e

Browse files
committed
Merge pull request #1 from jbrownson/master
leave off the "| r" in pureST
2 parents 4f79548 + a4116d2 commit 031ea9e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

docs/Control/Monad/ST.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ It may cause problems to apply this function using the `$` operator. The recomme
6868
#### `pureST`
6969

7070
``` purescript
71-
pureST :: forall a. (forall h r. Eff (st :: ST h | r) a) -> a
71+
pureST :: forall a. (forall h. Eff (st :: ST h) a) -> a
7272
```
7373

7474
A convenience function which combines `runST` with `runPure`, which can be used when the only required effect is `ST`.

src/Control/Monad/ST.purs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,5 +38,5 @@ foreign import runST :: forall a r. (forall h. Eff (st :: ST h | r) a) -> Eff r
3838
-- |
3939
-- | Note: since this function has a rank-2 type, it may cause problems to apply this function using the `$` operator. The recommended approach
4040
-- | is to use parentheses instead.
41-
pureST :: forall a. (forall h r. Eff (st :: ST h | r) a) -> a
41+
pureST :: forall a. (forall h. Eff (st :: ST h) a) -> a
4242
pureST st = runPure (runST st)

0 commit comments

Comments
 (0)