Use same manager for multiple requests.
commit3d66412eae85525694ed185a3b46e761c65857e4
authorBoyd Stephen Smith Jr <bss@iguanasuicide.net>
Sun, 16 Mar 2014 20:13:32 +0000 (16 15:13 -0500)
committerBoyd Stephen Smith Jr <bss@iguanasuicide.net>
Sun, 16 Mar 2014 20:13:32 +0000 (16 15:13 -0500)
tree12c7f27b5fb119f483a2f1e0dc52587d10c31763
parent87c2be80bd1ea04825386b0b6ac67f0105c4197d
Use same manager for multiple requests.

This is accomplished by adding a ReaderT layer to our monad, pushing the
manager allocation to the user.  For convenience we now supply a default
evaluation strategy that is roughly equivalent to how we were hanlding
manager allocation before, but only doing it once, no matter how many
requests are in the monadic action.
src/Cryptsy/API/Public.hs
src/Cryptsy/API/Public/Internal.hs
src/Cryptsy/API/Public/Types/Monad.hs