mirror of
https://github.com/freckle/yesod-auth-oauth2.git
synced 2026-01-11 19:58:28 +01: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
|
||||
|
||||
import Control.Monad.Except
|
||||
import Control.Monad ((<=<))
|
||||
import Control.Monad.Except (ExceptT (..), runExceptT)
|
||||
import UnliftIO
|
||||
|
||||
instance (MonadUnliftIO m, Exception e) => MonadUnliftIO (ExceptT e m) where
|
||||
|
||||
@ -12,7 +12,8 @@ module Yesod.Auth.OAuth2.Dispatch
|
||||
, dispatchAuthRequest
|
||||
) where
|
||||
|
||||
import Control.Monad.Except
|
||||
import Control.Monad (unless)
|
||||
import Control.Monad.Except (MonadError (..))
|
||||
import Data.Text (Text)
|
||||
import qualified Data.Text as T
|
||||
import Data.Text.Encoding (encodeUtf8)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user