I am trying to create a Request value and am getting the following error:
ghci> :m +Network.HTTP Network.URI Data.Maybe
ghci> Request { rqURI = fromJust $ parseURI "http://www.google.com", rqMethod = GET, rqHeaders = [], rqBody = ""}
<interactive>:18:19:
Couldn't match expected type `network-2.3.1.0:Network.URI.URI'
with actual type `URI'
In the `rqURI' field of a record
In the expression:
Request
{rqURI = fromJust $ parseURI "http://www.google.com",
rqMethod = GET, rqHeaders = [], rqBody = ""}
In an equation for `it':
it
= Request
{rqURI = fromJust $ parseURI "http://www.google.com",
rqMethod = GET, rqHeaders = [], rqBody = ""}
cabal list network shows the following:
* network
Synopsis: Low-level networking interface
Default available version: 2.4.0.1
Installed versions: 2.3.1.0, 2.4.0.1
Homepage: https://github.com/haskell/network
License: BSD3
From the docs on Hackage, I believe that the URI I am creating with parseURI is a Network.URI.URI.
I am running the Haskell Platform 2012.4.0.0 (64 bit) on OS X Mountain Lion.
Is this an example of "cabal hell" that I hear about?