haskell/HTTP — Issue #21: Example code for `Network.Browser.browse` is wrong
Author: peti
Created: 2011-11-29 10:00:49+00:00
State: open

The front-page example code of how to use `Network.Browser.browse` doesn't compile:

Couldn't match expected type `Either
Network.Stream.ConnError (Network.HTTP.Base.Response [a0])'
with actual type `(Network.URI.URI,
Network.HTTP.Base.Response String)'
Expected type: Network.Stream.Result
(Network.HTTP.Base.Response [a0])
Actual type: (Network.URI.URI, Network.HTTP.Base.Response String)
In the first argument of `getResponseBody', namely `rsp'
In the second argument of `fmap', namely `(getResponseBody rsp)'
Couldn't match expected type `Either
Network.Stream.ConnError (Network.HTTP.Base.Response [a0])'
with actual type `(Network.URI.URI,
Network.HTTP.Base.Response String)'
Expected type: Network.Stream.Result
(Network.HTTP.Base.Response [a0])
Actual type: (Network.URI.URI, Network.HTTP.Base.Response String)
In the first argument of `getResponseBody', namely `rsp'
In the second argument of `fmap', namely `(getResponseBody rsp)'