diff --git a/Yesod/Default/Main.hs b/Yesod/Default/Main.hs
--- a/Yesod/Default/Main.hs
+++ b/Yesod/Default/Main.hs
@@ -77,7 +77,7 @@
         } app
   where
     shouldLog' =
-#if MIN_VERSION_wai(2,1,3)
+#if MIN_VERSION_warp(2,1,3)
         Warp.defaultShouldDisplayException
 #else
         const True
diff --git a/yesod.cabal b/yesod.cabal
--- a/yesod.cabal
+++ b/yesod.cabal
@@ -1,5 +1,5 @@
 name:            yesod
-version:         1.2.5.2
+version:         1.2.5.3
 license:         MIT
 license-file:    LICENSE
 author:          Michael Snoyman <michael@snoyman.com>
