diff --git a/Yesod/Auth/OAuth2.hs b/Yesod/Auth/OAuth2.hs index d659eab..63e9800 100644 --- a/Yesod/Auth/OAuth2.hs +++ b/Yesod/Auth/OAuth2.hs @@ -1,4 +1,6 @@ +{-# LANGUAGE CPP #-} {-# LANGUAGE DeriveDataTypeable #-} +{-# LANGUAGE FlexibleContexts #-} {-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE QuasiQuotes #-} -- | @@ -14,7 +16,10 @@ module Yesod.Auth.OAuth2 , module Network.OAuth.OAuth2 ) where +#if __GLASGOW_HASKELL__ < 710 import Control.Applicative ((<$>)) +#endif + import Control.Exception.Lifted import Control.Monad.IO.Class import Data.ByteString (ByteString) diff --git a/Yesod/Auth/OAuth2/Github.hs b/Yesod/Auth/OAuth2/Github.hs index d211251..1c41acf 100644 --- a/Yesod/Auth/OAuth2/Github.hs +++ b/Yesod/Auth/OAuth2/Github.hs @@ -1,3 +1,4 @@ +{-# LANGUAGE CPP #-} {-# LANGUAGE OverloadedStrings #-} -- | -- @@ -13,7 +14,10 @@ module Yesod.Auth.OAuth2.Github , module Yesod.Auth.OAuth2 ) where -import Control.Applicative ((<$>), (<*>)) +#if __GLASGOW_HASKELL__ < 710 +import Control.Applicative ((<$>), (<*>), pure) +#endif + import Control.Exception.Lifted import Control.Monad (mzero) import Data.Aeson diff --git a/Yesod/Auth/OAuth2/Spotify.hs b/Yesod/Auth/OAuth2/Spotify.hs index 669078c..e1acfce 100644 --- a/Yesod/Auth/OAuth2/Spotify.hs +++ b/Yesod/Auth/OAuth2/Spotify.hs @@ -1,3 +1,4 @@ +{-# LANGUAGE CPP #-} {-# LANGUAGE OverloadedStrings #-} -- | -- @@ -8,7 +9,10 @@ module Yesod.Auth.OAuth2.Spotify , module Yesod.Auth.OAuth2 ) where -import Control.Applicative ((<$>), (<*>)) +#if __GLASGOW_HASKELL__ < 710 +import Control.Applicative ((<$>), (<*>), pure) +#endif + import Control.Exception.Lifted import Control.Monad (mzero) import Data.Aeson diff --git a/Yesod/Auth/OAuth2/Upcase.hs b/Yesod/Auth/OAuth2/Upcase.hs index fbfca3f..ef0b823 100644 --- a/Yesod/Auth/OAuth2/Upcase.hs +++ b/Yesod/Auth/OAuth2/Upcase.hs @@ -1,3 +1,4 @@ +{-# LANGUAGE CPP #-} {-# LANGUAGE OverloadedStrings #-} -- | -- @@ -12,7 +13,10 @@ module Yesod.Auth.OAuth2.Upcase , module Yesod.Auth.OAuth2 ) where -import Control.Applicative ((<$>), (<*>)) +#if __GLASGOW_HASKELL__ < 710 +import Control.Applicative ((<$>), (<*>), pure) +#endif + import Control.Exception.Lifted import Control.Monad (mzero) import Data.Aeson diff --git a/yesod-auth-oauth2.cabal b/yesod-auth-oauth2.cabal index a1bacd9..613a2b2 100644 --- a/yesod-auth-oauth2.cabal +++ b/yesod-auth-oauth2.cabal @@ -34,7 +34,7 @@ library , text >= 0.7 && < 2.0 , yesod-form >= 1.3 && < 1.5 , transformers >= 0.2.2 && < 0.5 - , hoauth2 >= 0.4.1 && < 0.5 + , hoauth2 >= 0.4.7 && < 0.5 , lifted-base >= 0.2 && < 0.4 exposed-modules: Yesod.Auth.OAuth2