packages feed

fb 0.14.7.1 → 0.14.8

raw patch · 2 files changed

+8/−1 lines, 2 filesdep +monad-loggerPVP ok

version bump matches the API change (PVP)

Dependencies added: monad-logger

API changes (from Hackage documentation)

Files

fb.cabal view
@@ -1,5 +1,5 @@ name:              fb-version:           0.14.7.1+version:           0.14.8 license:           BSD3 license-file:      LICENSE author:            Felipe Lessa@@ -86,6 +86,7 @@     , crypto-api           >= 0.11    && < 0.13     , cryptohash           >= 0.7     , cryptohash-cryptoapi == 0.1.*+    , monad-logger         >= 0.3   extensions:     DeriveDataTypeable     EmptyDataDecls
src/Facebook/Monad.hs view
@@ -24,6 +24,7 @@ import Control.Monad.Base (MonadBase(..)) import Control.Monad.Fix (MonadFix) import Control.Monad.IO.Class (MonadIO)+import Control.Monad.Logger (MonadLogger(..)) import Control.Monad.Trans.Class (MonadTrans(lift)) import Control.Monad.Trans.Control ( MonadTransControl(..), MonadBaseControl(..)                                    , ComposeSt, defaultLiftBaseWith@@ -60,6 +61,11 @@     newtype StM (FacebookT auth m) a = StMT {unStMT :: ComposeSt (FacebookT auth) m a}     liftBaseWith = defaultLiftBaseWith StMT     restoreM     = defaultRestoreM   unStMT++-- | Since @fb-0.14.8@.+instance MonadLogger m => MonadLogger (FacebookT auth m) where+    monadLoggerLog loc src lvl msg = lift (monadLoggerLog loc src lvl msg)+  -- | Phantom type stating that you have provided your -- 'Credentials' and thus have access to the whole API.