Sorry I'm late to the party, -XPackageImports is the solution to this issue: https://downloads.haskell.org/~ghc/7.10.2/docs/html/users_guide/syntax-extns.html#idp23827600

On Wed, Jul 8, 2015 at 7:10 AM Christopher Reichert <creichert07@gmail.com> wrote:


On Wed, Jul 08 2015, "Kees Bleijenberg" <K.Bleijenberg@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@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
_______________________________________________
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe