diff --git a/simple-config.cabal b/simple-config.cabal
--- a/simple-config.cabal
+++ b/simple-config.cabal
@@ -1,5 +1,5 @@
 Name:                simple-config
-Version:             1.2.2
+Version:             1.2.2.1
 Synopsis:            Simple config file parser generator
 Description:         Simple config file parser generator
 Homepage:            https://github.com/yunomu/simple-config
@@ -10,27 +10,41 @@
 -- Copyright:           
 Category:            Text
 Build-type:          Simple
+Cabal-version:       >=1.8
 
-Cabal-version:       >=1.6
+flag network-uri
+  description: Get Network.URI from the network-uri package
+  default: True
 
 Library
   Exposed-modules:   Text.Config
   Ghc-options:       -Wall
                      -fno-warn-unused-do-bind
   Build-depends:     base >= 4 && < 5
-                   , network
                    , parsec
                    , bytestring
                    , transformers
                    , data-default
                    , template-haskell
+  if flag(network-uri)
+    Build-depends:   network-uri >= 2.6
+  else
+    Build-depends:   network < 2.6
 
+
   Other-modules:     Text.Config.TH
                    , Text.Config.Lib
                    , Text.Config.Parser
                    , Text.Config.Types
 
 Source-repository head
-    Type:            git
-    Location:        git://github.com/yunomu/simple-config.git
+  Type:            git
+  Location:        git://github.com/yunomu/simple-config.git
 
+test-suite spec
+  type:            exitcode-stdio-1.0
+  hs-source-dirs:  test
+  ghc-options:     -Wall
+  main-is:         Spec.hs
+  build-depends:   base >= 4 && < 5
+                 , hspec
diff --git a/test/Spec.hs b/test/Spec.hs
new file mode 100644
--- /dev/null
+++ b/test/Spec.hs
@@ -0,0 +1,6 @@
+module Main where
+
+import Test.Hspec
+
+main = hspec $ do
+    return ()
