diff --git a/Network/Wai/Application/Static.hs b/Network/Wai/Application/Static.hs
--- a/Network/Wai/Application/Static.hs
+++ b/Network/Wai/Application/Static.hs
@@ -73,7 +73,11 @@
 
 import           Text.Blaze                  ((!))
 import qualified Text.Blaze.Html5            as H
+#if MIN_VERSION_blaze_html(0,5,0)
+import qualified Text.Blaze.Html.Renderer.Utf8 as HU
+#else
 import qualified Text.Blaze.Renderer.Utf8    as HU
+#endif
 import qualified Text.Blaze.Html5.Attributes as A
 
 import Blaze.ByteString.Builder (toByteString, fromByteString)
diff --git a/wai-app-static.cabal b/wai-app-static.cabal
--- a/wai-app-static.cabal
+++ b/wai-app-static.cabal
@@ -1,5 +1,5 @@
 name:            wai-app-static
-version:         1.2.0.1
+version:         1.2.0.2
 license:         MIT
 license-file:    LICENSE
 author:          Michael Snoyman <michael@snoyman.com>
@@ -22,6 +22,10 @@
     Description:   print debug info
     Default:       False
 
+flag blaze_html_0_5
+    Description:   use blaze-html 0.5 and blaze-markup 0.5
+    Default:       False
+
 library
     build-depends:   base                      >= 4        && < 5
                    , wai                       >= 1.2      && < 1.3
@@ -31,7 +35,6 @@
                    , unix-compat               >= 0.2
                    , directory                 >= 1.0.1    && < 1.2
                    , containers                >= 0.2      && < 0.5
-                   , blaze-html                >= 0.4      && < 0.5
                    , time                      >= 1.1.4
                    , old-locale                >= 1.0.0.2  && < 1.1
                    , file-embed                >= 0.0.3.1  && < 0.1
@@ -40,6 +43,15 @@
                    , base64-bytestring         >= 0.1      && < 0.2
                    , cryptohash                >= 0.7      && < 0.8
                    , http-date
+
+    if flag(blaze_html_0_5)
+        build-depends:
+                     blaze-html                >= 0.5      && < 0.6
+                   , blaze-markup              >= 0.5.1    && < 0.6
+    else
+        build-depends:
+                     blaze-html                >= 0.4      && < 0.5
+
     exposed-modules: Network.Wai.Application.Static
     ghc-options:     -Wall
     extensions:     CPP
