-
Notifications
You must be signed in to change notification settings - Fork 38
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Minor updates - and remove body printing #66
base: master
Are you sure you want to change the base?
Conversation
…and removed body printing
Thanks @seanhess, It looks like removing the Data.Monoid import broke some modules on older GHCs. I think we need to add it back. Otherwise, thanks for bumping containers and thanks for removing the print statement (definitely my mistake to have included it!). |
@@ -74,5 +74,5 @@ runRequest' credentials (RequestT (FreeT m)) = m >>= \case | |||
else do | |||
let body = responseBody response | |||
body' <- LBS.fromChunks <$> brConsume body | |||
print body' | |||
-- print body' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK to just delete this, IMO.
@@ -88,7 +88,7 @@ library | |||
base ==4.*, | |||
binary >=0.7, | |||
bytestring ==0.10.*, | |||
containers ==0.5.*, | |||
containers >= 0.5.0 && <0.7.0, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wonder if we can just nix the upper bound completely?
@@ -20,7 +20,6 @@ module Twilio.APIKey | |||
import Control.Monad | |||
import Control.Monad.Catch | |||
import Data.Aeson | |||
import Data.Monoid |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see some errors like
src/Twilio/Types/SID/TH.hs:59:6:
Not in scope: ‘<>’
Perhaps you meant one of these:
‘<$>’ (imported from Prelude), ‘*>’ (imported from Prelude),
‘<$’ (imported from Prelude)
So I think we need to add these imports back.
I updated containers to be compatible with 0.5 and 0.6, then removed the Data.Monoid imports (no longer neccesary).
I removed the print statement in
runRequest'
, because it makes the library unusable (my programs log to stdout, so this means user information can become leaked to the logs.) I'd recommend leaving it out until you make it configurable. (Debug mode?)