diff --git a/HandsomeSoup.cabal b/HandsomeSoup.cabal
--- a/HandsomeSoup.cabal
+++ b/HandsomeSoup.cabal
@@ -1,5 +1,5 @@
 Name:               HandsomeSoup
-Version:            0.3.4
+Version:            0.3.5
 Synopsis:           Work with HTML more easily in HXT
 Description:        See examples and full readme on the Github page: https:\/\/github.com\/egonSchiele\/HandsomeSoup
 Homepage:           https://github.com/egonSchiele/HandsomeSoup
@@ -14,6 +14,12 @@
 Extra-source-files: README.markdown
                   , examples/*.hs
 Data-files:         tests/test.html
+
+-- See comment at: http://hackage.haskell.org/package/network-uri
+flag network-uri
+  description: Get Network.URI from the network-uri package
+  default: True
+
 library
   hs-source-dirs:     src
   Exposed-modules:    Text.HandsomeSoup
@@ -27,9 +33,13 @@
                     , mtl
                     , MaybeT
                     , hxt
-                    , network == 2.5.0.0
-                    , network-uri == 2.5.0.0
                     , hxt-http
+  if flag(network-uri)
+    Build-depends:      network >= 2.6
+                      , network-uri >= 2.6
+  else
+    Build-depends:      network < 2.6
+                      , network-uri < 2.6
 
 test-suite hspec
   hs-source-dirs:      tests
