Last active
December 28, 2015 23:11
-
-
Save liangzan/e674a3806a39ee51cb0b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
toResponse :: IO (Response BL.ByteString) -> BL.ByteString | |
toResponse i = view responseBody i | |
-- compiler error | |
Couldn't match type ‘IO (Response BL.ByteString)’ | |
with ‘Response BL.ByteString’ | |
arising from a functional dependency between: | |
constraint ‘mtl-2.2.1:Control.Monad.Reader.Class.MonadReader | |
(Response BL.ByteString) ((->) (IO (Response BL.ByteString)))’ | |
arising from a use of ‘view’ | |
instance ‘mtl-2.2.1:Control.Monad.Reader.Class.MonadReader | |
r ((->) r)’ | |
at <no location info> | |
In the expression: view responseBody i | |
In an equation for ‘imageToResponse’: | |
imageToResponse i = view responseBody i | |
In the expression: view responseBody i | |
In an equation for ‘imageToResponse’: | |
imageToResponse i = view responseBody i |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment