Clumsy Looking Type Signature for ByteStrings in Haskell HTTP Response
问题 I'm experimenting with the http-conduit library and have this simple example: #!/usr/bin/env stack {- stack --resolver lts-7.12 --install-ghc runghc --package http-conduit -} {-# LANGUAGE OverloadedStrings #-} import Network.HTTP.Conduit import Data.ByteString.Lazy.Internal getUrl :: IO (Data.ByteString.Lazy.Internal.ByteString) ---eeew! getUrl = do resp <- simpleHttp "http://www.stackoverflow.com" return resp I understand from this post that I should prefer a response as a ByteString to a