diff --git a/CHANGELOG.md b/CHANGELOG.md index 4c8eb2e..d5c107f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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: diff --git a/src/Effect/Aff.purs b/src/Effect/Aff.purs index 4854444..db7d8b1 100644 --- a/src/Effect/Aff.purs +++ b/src/Effect/Aff.purs @@ -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`.