Skip to content

Commit

Permalink
Make launchAff_ only work on Aff Unit (#203)
Browse files Browse the repository at this point in the history
Co-authored-by: Thomas Honeyman <admin@thomashoneyman.com>
  • Loading branch information
i-am-the-slime and thomashoneyman committed Mar 22, 2022
1 parent 1842a81 commit ff19847
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ Notable changes to this project are documented in this file. The format is based
## [Unreleased]

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

New features:
Expand Down
2 changes: 1 addition & 1 deletion src/Effect/Aff.purs
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ launchAff aff = do
pure fiber

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

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

0 comments on commit ff19847

Please sign in to comment.