Skip to content

Commit ff19847

Browse files
Make launchAff_ only work on Aff Unit (#203)
Co-authored-by: Thomas Honeyman <admin@thomashoneyman.com>
1 parent 1842a81 commit ff19847

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ Notable changes to this project are documented in this file. The format is based
55
## [Unreleased]
66

77
Breaking changes:
8+
- Restrict the signature of `launchAff_` to only work on `Aff Unit` (#203 by @i-am-the-slime)
89
- Migrate FFI to ES modules (#209 by @JordanMartinez)
910

1011
New features:

src/Effect/Aff.purs

+1-1
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ launchAff aff = do
226226
pure fiber
227227

228228
-- | Forks an `Aff` from an `Effect` context, discarding the `Fiber`.
229-
launchAff_ :: forall a. Aff a -> Effect Unit
229+
launchAff_ :: Aff Unit -> Effect Unit
230230
launchAff_ = void <<< launchAff
231231

232232
-- | Suspends an `Aff` from an `Effect` context, returning the `Fiber`.

0 commit comments

Comments
 (0)