[Haskell-cafe] ambiguous module name Network.URI

Christopher Reichert creichert07 at gmail.com
Wed Jul 8 14:10:23 UTC 2015

On Wed, Jul 08 2015, "Kees Bleijenberg" <K.Bleijenberg at lijbrandt.nl> wrote:
> Thanks Christopher,
> -----Oorspronkelijk bericht-----
> Check out the Hackage page for network-uri:
> https://hackage.haskell.org/package/network-uri
> The parseURI function is in the version of network you are using already so
> there is no need to import modules from network-uri.
> ----------------------------------------
> If I remove the import of Network-URI and leave the import Network.Http and
> use parseURI, ghc complains:  not in scope parseURI.
> Do I have to change someting in the packages?

You should leave the import of Network.URI. Are you trying to build a
cabal project? Did you install the network-uri package yourself?

If you're creating a cabal project try adding:

build-depends: network-uri < 2.6, network < 2.6

Otherwise, can you describe the install steps you are taking?

> Kees
> _______________________________________________
> Haskell-Cafe mailing list
> Haskell-Cafe at haskell.org
> http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe

Christopher Reichert
irc: creichert
gpg: C81D 18C8 862A 3618 1376  FFA5 6BFC A992 9955 929B
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 818 bytes
Desc: not available
URL: <http://mail.haskell.org/pipermail/haskell-cafe/attachments/20150708/cab3a547/attachment.sig>

More information about the Haskell-Cafe mailing list