diff --git a/Network/HTTP/Wget.hs b/Network/HTTP/Wget.hs
--- a/Network/HTTP/Wget.hs
+++ b/Network/HTTP/Wget.hs
@@ -1,6 +1,7 @@
 {-# LANGUAGE DeriveDataTypeable #-}
 {-# LANGUAGE FlexibleContexts #-}
 {-# LANGUAGE PackageImports #-}
+{-# LANGUAGE CPP #-}
 ---------------------------------------------------------
 -- |
 -- Module        : Network.HTTP.Wget
@@ -25,7 +26,11 @@
 import System.IO
 import Numeric (showHex)
 import Data.List (intercalate)
+#if TRANSFORMERS_02
 import "transformers" Control.Monad.IO.Class
+#else
+import "transformers" Control.Monad.Trans
+#endif
 import Control.Failure
 import Control.Exception
 import Data.Generics
diff --git a/http-wget.cabal b/http-wget.cabal
--- a/http-wget.cabal
+++ b/http-wget.cabal
@@ -1,5 +1,5 @@
 name:            http-wget
-version:         0.6.0
+version:         0.6.0.1
 license:         BSD3
 license-file:    LICENSE
 author:          Michael Snoyman <michael@snoyman.com>
@@ -16,11 +16,18 @@
 build-type:      Simple
 homepage:        http://github.com/snoyberg/http-wget/tree/master
 
+flag transformers_02
+    description: transformers = 0.2.*
+
 library
     build-depends:   base >= 4 && < 5,
                      process >= 1.0.1.1 && < 1.1,
                      failure >= 0.0.0 && < 0.1,
-                     transformers >= 0.2 && < 0.3,
                      syb
+    if flag(transformers_02)
+      build-depends: transformers >= 0.2 && < 0.3
+      CPP-OPTIONS: -DTRANSFORMERS_02
+    else
+      build-depends: transformers >= 0.1 && < 0.2
     exposed-modules: Network.HTTP.Wget
     ghc-options:     -Wall
