packages feed

yesod-auth-oauth 1.6.0 → 1.6.0.1

raw patch · 3 files changed

+12/−6 lines, 3 filesdep −transformersPVP ok

version bump matches the API change (PVP)

Dependencies removed: transformers

API changes (from Hackage documentation)

Files

ChangeLog.md view
@@ -1,3 +1,7 @@+## 1.6.0.1++* Compile with GHC 8.6 [#1561](https://github.com/yesodweb/yesod/pull/1561)+ ## 1.6.0  * Upgrade to yesod-core 1.6.0
Yesod/Auth/OAuth.hs view
@@ -1,5 +1,6 @@ {-# LANGUAGE DeriveDataTypeable, OverloadedStrings, QuasiQuotes #-} {-# LANGUAGE FlexibleContexts #-}+{-# LANGUAGE LambdaCase #-} {-# LANGUAGE RankNTypes #-} {-# LANGUAGE GADTs #-} {-# LANGUAGE ScopedTypeVariables #-}@@ -69,7 +70,9 @@         setSession oauthSessionName $ lookupTokenSecret tok         redirect $ authorizeUrl oauth' tok     dispatch "GET" [] = do-      Just tokSec <- lookupSession oauthSessionName+      tokSec <- lookupSession oauthSessionName >>= \case+        Just t -> return t+        Nothing -> liftIO $ fail "lookupSession could not find session"       deleteSession oauthSessionName       reqTok <-         if oauthVersion oauth == OAuth10
yesod-auth-oauth.cabal view
@@ -1,5 +1,5 @@ name:            yesod-auth-oauth-version:         1.6.0+version:         1.6.0.1 license:         BSD3 license-file:    LICENSE author:          Hiromi Ishii@@ -23,12 +23,11 @@         build-depends:   base                >= 4         && < 4.3     build-depends:   authenticate-oauth      >= 1.5       && < 1.7                    , bytestring              >= 0.9.1.4-                   , yesod-core              >= 1.6       && < 1.7-                   , yesod-auth              >= 1.6       && < 1.7                    , text                    >= 0.7-                   , yesod-form              >= 1.6       && < 1.7-                   , transformers            >= 0.2.2     && < 0.6                    , unliftio+                   , yesod-auth              >= 1.6       && < 1.7+                   , yesod-core              >= 1.6       && < 1.7+                   , yesod-form              >= 1.6       && < 1.7     exposed-modules: Yesod.Auth.OAuth     ghc-options:     -Wall