diff --git a/test/main.hs b/test/main.hs
--- a/test/main.hs
+++ b/test/main.hs
@@ -7,7 +7,7 @@
 import Test.Hspec.HUnit ()
 
 main :: IO ()
-main = hspecX $ describe "xml-hamlet"
+main = hspecX [describe "xml-hamlet"
     [ it "handles plain tags" $ [xml|
 <foo>
         <baz>
@@ -130,7 +130,7 @@
      bin=bin>content
 |] @?= [xml|<foo bar=baz bin=bin>content|]
     , it "short circuiting of attributes" $ [xml|<foo :False:x=#{undefined}>|] @?= [xml|<foo>|]
-    ]
+    ]]
   where
     bin = "bin"
     nodes = [X.NodeInstruction $ X.Instruction "ifoo" "ibar"]
diff --git a/xml-hamlet.cabal b/xml-hamlet.cabal
--- a/xml-hamlet.cabal
+++ b/xml-hamlet.cabal
@@ -1,5 +1,5 @@
 Name:                xml-hamlet
-Version:             0.3.0
+Version:             0.3.0.1
 Synopsis:            Hamlet-style quasiquoter for XML content
 Homepage:            http://www.yesodweb.com/
 License:             BSD3
@@ -31,7 +31,7 @@
   hs-source-dirs:      test
   type:                exitcode-stdio-1.0
   ghc-options:         -Wall
-  build-depends:       hspec
+  build-depends:       hspec >= 1.0 && < 1.2
                      , HUnit
                      , base >= 4 && < 5
                      , shakespeare
