fix exports
This commit is contained in:
parent
7da76ed767
commit
e34aa1251e
3 changed files with 7 additions and 8 deletions
|
@ -1,5 +1,7 @@
|
||||||
__v0.9.11__
|
__v0.9.11__
|
||||||
|
|
||||||
|
add logging
|
||||||
|
|
||||||
add option to delay between requests (requestDelayMills)
|
add option to delay between requests (requestDelayMills)
|
||||||
|
|
||||||
__v0.9.10__
|
__v0.9.10__
|
||||||
|
|
|
@ -33,9 +33,6 @@ module Pinboard (
|
||||||
-- * Pinboard.ApiTypesLens
|
-- * Pinboard.ApiTypesLens
|
||||||
-- | Lens accessors for Pinboard.ApiTypes
|
-- | Lens accessors for Pinboard.ApiTypes
|
||||||
, module Pinboard.ApiTypesLens
|
, module Pinboard.ApiTypesLens
|
||||||
-- * Pinboard.Logging
|
|
||||||
-- | Logging Utils
|
|
||||||
, module Pinboard.Logging
|
|
||||||
) where
|
) where
|
||||||
|
|
||||||
import Pinboard.Client
|
import Pinboard.Client
|
||||||
|
@ -43,4 +40,3 @@ import Pinboard.Api
|
||||||
import Pinboard.ApiRequest
|
import Pinboard.ApiRequest
|
||||||
import Pinboard.ApiTypes
|
import Pinboard.ApiTypes
|
||||||
import Pinboard.ApiTypesLens
|
import Pinboard.ApiTypesLens
|
||||||
import Pinboard.Logging
|
|
||||||
|
|
|
@ -139,12 +139,13 @@ runPinboardSingleRawBS config req = do
|
||||||
res <- runPinboardSingleRaw config req
|
res <- runPinboardSingleRaw config req
|
||||||
case checkStatusCodeResponse res of
|
case checkStatusCodeResponse res of
|
||||||
Left e -> logErrorAndThrow e
|
Left e -> logErrorAndThrow e
|
||||||
Right _ -> (return.return) (responseBody res)
|
Right _ -> (return . return) (responseBody res)
|
||||||
where
|
where
|
||||||
logSrc = "runPinboardSingleRawBS"
|
logSrc = "runPinboardSingleRawBS"
|
||||||
logErrorAndThrow e = runConfigLoggingT config $ do
|
logErrorAndThrow e =
|
||||||
logNST LevelError logSrc (toText e)
|
runConfigLoggingT config $
|
||||||
return (throwError e)
|
do logNST LevelError logSrc (toText e)
|
||||||
|
return (throwError e)
|
||||||
|
|
||||||
runPinboardSingleJson
|
runPinboardSingleJson
|
||||||
:: (MonadErrorPinboard e, FromJSON a)
|
:: (MonadErrorPinboard e, FromJSON a)
|
||||||
|
|
Loading…
Reference in a new issue