Restyled by stylish-haskell

This commit is contained in:
Restyled.io 2022-01-31 17:58:03 +00:00
parent 23b73d590d
commit dfded079c4
17 changed files with 73 additions and 86 deletions

View File

@ -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)

View File

@ -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

View File

@ -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)

View File

@ -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

View File

@ -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