mirror of
https://github.com/freckle/yesod-auth-oauth2.git
synced 2026-04-29 22:24:56 +02:00
Import Control.Monad functions directly
Newer Control.Monad.Except no longer re-exports these things. Using targeted imports keeps this working in those versions.
This commit is contained in:
parent
be5751a195
commit
a2e32f0f9a
@ -2,7 +2,8 @@
|
|||||||
|
|
||||||
module UnliftIO.Except () where
|
module UnliftIO.Except () where
|
||||||
|
|
||||||
import Control.Monad.Except
|
import Control.Monad ((<=<))
|
||||||
|
import Control.Monad.Except (ExceptT (..), runExceptT)
|
||||||
import UnliftIO
|
import UnliftIO
|
||||||
|
|
||||||
instance (MonadUnliftIO m, Exception e) => MonadUnliftIO (ExceptT e m) where
|
instance (MonadUnliftIO m, Exception e) => MonadUnliftIO (ExceptT e m) where
|
||||||
|
|||||||
@ -12,7 +12,8 @@ module Yesod.Auth.OAuth2.Dispatch
|
|||||||
, dispatchAuthRequest
|
, dispatchAuthRequest
|
||||||
) where
|
) where
|
||||||
|
|
||||||
import Control.Monad.Except
|
import Control.Monad (unless)
|
||||||
|
import Control.Monad.Except (MonadError (..))
|
||||||
import Data.Text (Text)
|
import Data.Text (Text)
|
||||||
import qualified Data.Text as T
|
import qualified Data.Text as T
|
||||||
import Data.Text.Encoding (encodeUtf8)
|
import Data.Text.Encoding (encodeUtf8)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user