Skip to content

Commit

Permalink
Remove incorrect default (fixes #56)
Browse files Browse the repository at this point in the history
  • Loading branch information
snoyberg committed Mar 2, 2020
1 parent d9946e6 commit 818c83b
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
4 changes: 4 additions & 0 deletions unliftio-core/ChangeLog.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# ChangeLog for unliftio-core

## 0.2.0.1

* Remove faulty default implementation of `withRunInIO` [#56](https://github.com/fpco/unliftio/issues/56)

## 0.2.0.0

* Move `askUnliftIO` out of class [#55](https://github.com/fpco/unliftio/issues/55)
Expand Down
4 changes: 2 additions & 2 deletions unliftio-core/package.yaml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
name: unliftio-core
version: 0.2.0.0
version: 0.2.0.1
synopsis: The MonadUnliftIO typeclass for unlifting monads to IO
description: Please see the documentation and README at <https://www.stackage.org/package/unliftio-core>
homepage: https://github.com/fpco/unliftio/tree/master/unliftio-core#readme
license: MIT
author: Michael Snoyman, Francesco Mazzoli
maintainer: [email protected]
copyright: 2017 FP Complete
copyright: 2017-2020 FP Complete
category: Control
extra-source-files:
- README.md
Expand Down
2 changes: 0 additions & 2 deletions unliftio-core/src/Control/Monad/IO/Unlift.hs
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,7 @@ class MonadIO m => MonadUnliftIO m where
-- action @m@ in @IO@.
--
-- @since 0.1.0.0
{-# INLINE withRunInIO #-}
withRunInIO :: ((forall a. m a -> IO a) -> IO b) -> m b
withRunInIO inner = askUnliftIO >>= \u -> liftIO (inner (unliftIO u))
instance MonadUnliftIO IO where
{-# INLINE withRunInIO #-}
withRunInIO inner = inner id
Expand Down

0 comments on commit 818c83b

Please sign in to comment.