mirror of
https://github.com/freckle/yesod-auth-oauth2.git
synced 2026-09-23 01:24:57 +02:00
Restyled by stylish-haskell
This commit is contained in:
parent
23b73d590d
commit
dfded079c4
@ -30,12 +30,8 @@ module Yesod.Auth.OAuth2
|
||||
|
||||
import Control.Error.Util (note)
|
||||
import Control.Monad ((<=<))
|
||||
import Data.Aeson ( FromJSON
|
||||
, eitherDecode
|
||||
)
|
||||
import Data.ByteString.Lazy ( ByteString
|
||||
, fromStrict
|
||||
)
|
||||
import Data.Aeson (FromJSON, eitherDecode)
|
||||
import Data.ByteString.Lazy (ByteString, fromStrict)
|
||||
import Data.Text (Text)
|
||||
import Data.Text.Encoding (encodeUtf8)
|
||||
import Network.HTTP.Conduit (Manager)
|
||||
|
||||
@ -15,10 +15,7 @@ module Yesod.Auth.OAuth2.BattleNet
|
||||
|
||||
import Yesod.Auth.OAuth2.Prelude
|
||||
|
||||
import qualified Data.Text as T
|
||||
( pack
|
||||
, toLower
|
||||
)
|
||||
import qualified Data.Text as T (pack, toLower)
|
||||
import Yesod.Core.Widget
|
||||
|
||||
newtype User = User Int
|
||||
|
||||
@ -18,8 +18,7 @@ import qualified Data.Text as T
|
||||
import Data.Text.Encoding (encodeUtf8)
|
||||
import Network.HTTP.Conduit (Manager)
|
||||
import Network.OAuth.OAuth2.Compat
|
||||
import Network.OAuth.OAuth2.TokenRequest
|
||||
( Errors )
|
||||
import Network.OAuth.OAuth2.TokenRequest (Errors)
|
||||
import URI.ByteString.Extension
|
||||
import UnliftIO.Exception
|
||||
import Yesod.Auth hiding (ServerError)
|
||||
|
||||
@ -32,9 +32,7 @@ module Yesod.Auth.OAuth2.Google
|
||||
) where
|
||||
|
||||
import Yesod.Auth.OAuth2.Prelude
|
||||
import Yesod.Core ( WidgetFor
|
||||
, whamlet
|
||||
)
|
||||
import Yesod.Core (WidgetFor, whamlet)
|
||||
|
||||
newtype User = User Text
|
||||
|
||||
|
||||
@ -13,11 +13,8 @@ module Yesod.Auth.OAuth2.Slack
|
||||
|
||||
import Yesod.Auth.OAuth2.Prelude
|
||||
|
||||
import Network.HTTP.Client ( httpLbs
|
||||
, parseUrlThrow
|
||||
, responseBody
|
||||
, setQueryString
|
||||
)
|
||||
import Network.HTTP.Client
|
||||
(httpLbs, parseUrlThrow, responseBody, setQueryString)
|
||||
import Yesod.Auth.OAuth2.Exception as YesodOAuth2Exception
|
||||
|
||||
data SlackScope
|
||||
|
||||
Loading…
Reference in New Issue
Block a user