diff --git a/changelog b/changelog
--- a/changelog
+++ b/changelog
@@ -1,3 +1,10 @@
+2014-10-15 0.4.2
+================
+
+	* Fix the build problems introduced in 0.4.1 to work with the 
+	  split network package. Thanks to Richard Wallace for
+	  fixing this and to Jeremy Shaw for reporting this at the same time.
+
 2014-09-17 0.4.1
 ================
 
diff --git a/jwt.cabal b/jwt.cabal
--- a/jwt.cabal
+++ b/jwt.cabal
@@ -2,7 +2,7 @@
 -- documentation, see http://haskell.org/cabal/users-guide/
 
 name:                jwt
-version:             0.4.1
+version:             0.4.2
 synopsis:            JSON Web Token (JWT) decoding and encoding
 license:             MIT
 license-file:        LICENSE
@@ -47,10 +47,10 @@
                      , http-types               >= 0.8
                      , time                     >= 1.1
 
- if flag(network-uri)
+  if flag(network-uri)
     build-depends:     network-uri          >= 2.6
                      , network              >= 2.6
- else
+  else
     build-depends:     network-uri          >= 2.4 && < 2.6
                      , network              >= 2.4 && < 2.6
 
@@ -87,10 +87,10 @@
                      , http-types
                      , time                     >= 1.1
 
- if flag(network-uri)
+  if flag(network-uri)
     build-depends:     network-uri          >= 2.6
                      , network              >= 2.6
- else
+  else
     build-depends:     network-uri          >= 2.4 && < 2.6
                      , network              >= 2.4 && < 2.6
   cpp-options: -DTEST
