unliftio-core 0.2
This commit is contained in:
parent
b4c613f766
commit
9d0c9180b9
@ -1,5 +1,9 @@
|
|||||||
# ChangeLog for yesod-core
|
# ChangeLog for yesod-core
|
||||||
|
|
||||||
|
## 1.6.17.3
|
||||||
|
|
||||||
|
* Support for `unliftio-core` 0.2
|
||||||
|
|
||||||
## 1.6.17.2
|
## 1.6.17.2
|
||||||
|
|
||||||
* Support template-haskell 2.16, build with GHC 8.10 [#1657](https://github.com/yesodweb/yesod/pull/1657)
|
* Support template-haskell 2.16, build with GHC 8.10 [#1657](https://github.com/yesodweb/yesod/pull/1657)
|
||||||
|
|||||||
@ -55,7 +55,7 @@ import Control.Monad.Reader (MonadReader (..))
|
|||||||
import Control.DeepSeq (NFData (rnf))
|
import Control.DeepSeq (NFData (rnf))
|
||||||
import Yesod.Core.TypeCache (TypeMap, KeyedTypeMap)
|
import Yesod.Core.TypeCache (TypeMap, KeyedTypeMap)
|
||||||
import Control.Monad.Logger (MonadLoggerIO (..))
|
import Control.Monad.Logger (MonadLoggerIO (..))
|
||||||
import UnliftIO (MonadUnliftIO (..), UnliftIO (..))
|
import UnliftIO (MonadUnliftIO (..))
|
||||||
|
|
||||||
-- Sessions
|
-- Sessions
|
||||||
type SessionMap = Map Text ByteString
|
type SessionMap = Map Text ByteString
|
||||||
@ -437,9 +437,8 @@ instance PrimMonad (WidgetFor site) where
|
|||||||
primitive = liftIO . primitive
|
primitive = liftIO . primitive
|
||||||
-- | @since 1.4.38
|
-- | @since 1.4.38
|
||||||
instance MonadUnliftIO (WidgetFor site) where
|
instance MonadUnliftIO (WidgetFor site) where
|
||||||
{-# INLINE askUnliftIO #-}
|
{-# INLINE withRunInIO #-}
|
||||||
askUnliftIO = WidgetFor $ \wd ->
|
withRunInIO inner = WidgetFor $ \x -> inner $ flip unWidgetFor x
|
||||||
return (UnliftIO (flip unWidgetFor wd))
|
|
||||||
instance MonadReader (WidgetData site) (WidgetFor site) where
|
instance MonadReader (WidgetData site) (WidgetFor site) where
|
||||||
ask = WidgetFor return
|
ask = WidgetFor return
|
||||||
local f (WidgetFor g) = WidgetFor $ g . f
|
local f (WidgetFor g) = WidgetFor $ g . f
|
||||||
@ -476,9 +475,8 @@ instance MonadReader (HandlerData site site) (HandlerFor site) where
|
|||||||
|
|
||||||
-- | @since 1.4.38
|
-- | @since 1.4.38
|
||||||
instance MonadUnliftIO (HandlerFor site) where
|
instance MonadUnliftIO (HandlerFor site) where
|
||||||
{-# INLINE askUnliftIO #-}
|
{-# INLINE withRunInIO #-}
|
||||||
askUnliftIO = HandlerFor $ \r ->
|
withRunInIO inner = HandlerFor $ \x -> inner $ flip unHandlerFor x
|
||||||
return (UnliftIO (flip unHandlerFor r))
|
|
||||||
|
|
||||||
instance MonadThrow (HandlerFor site) where
|
instance MonadThrow (HandlerFor site) where
|
||||||
throwM = liftIO . throwM
|
throwM = liftIO . throwM
|
||||||
@ -549,9 +547,8 @@ instance MonadReader (HandlerData child master) (SubHandlerFor child master) whe
|
|||||||
|
|
||||||
-- | @since 1.4.38
|
-- | @since 1.4.38
|
||||||
instance MonadUnliftIO (SubHandlerFor child master) where
|
instance MonadUnliftIO (SubHandlerFor child master) where
|
||||||
{-# INLINE askUnliftIO #-}
|
{-# INLINE withRunInIO #-}
|
||||||
askUnliftIO = SubHandlerFor $ \r ->
|
withRunInIO inner = SubHandlerFor $ \x -> inner $ flip unSubHandlerFor x
|
||||||
return (UnliftIO (flip unSubHandlerFor r))
|
|
||||||
|
|
||||||
instance MonadThrow (SubHandlerFor child master) where
|
instance MonadThrow (SubHandlerFor child master) where
|
||||||
throwM = liftIO . throwM
|
throwM = liftIO . throwM
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
name: yesod-core
|
name: yesod-core
|
||||||
version: 1.6.17.2
|
version: 1.6.17.3
|
||||||
license: MIT
|
license: MIT
|
||||||
license-file: LICENSE
|
license-file: LICENSE
|
||||||
author: Michael Snoyman <michael@snoyman.com>
|
author: Michael Snoyman <michael@snoyman.com>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user