mirror of
https://github.com/freckle/yesod-auth-oauth2.git
synced 2026-02-20 06:45:48 +01:00
Support GHC 7.10
- Conditionally import Control.Applicative - Enable FlexibleContexts
This commit is contained in:
parent
44a83b6c6a
commit
ad0e354b2b
@ -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)
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user