diff --git a/CHANGES b/CHANGES
--- a/CHANGES
+++ b/CHANGES
@@ -1,6 +1,13 @@
 User-visible changes in hledger-web. See also hledger, hledger-lib.
 
 
+# 1.5.1 (2018/03/12)
+
+* support yesod 1.6 (#717)
+
+* restore bounds for main yesod packages to avoid breakage (#717)
+
+
 # 1.5 (2017/12/31)
 
 * add form account fields now suggest implied and declared account names also
diff --git a/Foundation.hs b/Foundation.hs
--- a/Foundation.hs
+++ b/Foundation.hs
@@ -150,11 +150,12 @@
         staticRootUrl <- (staticRoot . settings) <$> getYesod
         withUrlRenderer $(hamletFile "templates/default-layout-wrapper.hamlet")
 
+    -- TODO outdated, still needed ?
     -- This is done to provide an optimization for serving static files from
     -- a separate domain. Please see the staticRoot setting in Settings.hs
-    urlRenderOverride y (StaticR s) =
-        Just $ uncurry (joinPath y (Settings.staticRoot $ settings y)) $ renderRoute s
-    urlRenderOverride _ _ = Nothing
+    -- urlRenderOverride y (StaticR s) =
+    --     Just $ uncurry (joinPath y (Settings.staticRoot $ settings y)) $ renderRoute s
+    urlParamRenderOverride _ _ _ = Nothing
 
 #ifndef DEVELOPMENT
     -- This function creates static content files in the static folder
@@ -166,11 +167,6 @@
 
     -- Place Javascript at bottom of the body tag so the rest of the page loads first
     jsLoader _ = BottomOfBody
-
-    -- What messages should be logged. The following includes all messages when
-    -- in development, and warnings and errors in production.
-    shouldLog _ _source level =
-        development || level == LevelWarn || level == LevelError
 
 -- This instance is required to use forms. You can modify renderMessage to
 -- achieve customized and internationalized form validation messages.
diff --git a/hledger-web.1 b/hledger-web.1
--- a/hledger-web.1
+++ b/hledger-web.1
@@ -1,5 +1,5 @@
 
-.TH "hledger\-web" "1" "December 2017" "hledger\-web 1.5" "hledger User Manuals"
+.TH "hledger\-web" "1" "March 2018" "hledger\-web 1.5.1" "hledger User Manuals"
 
 
 
diff --git a/hledger-web.cabal b/hledger-web.cabal
--- a/hledger-web.cabal
+++ b/hledger-web.cabal
@@ -2,10 +2,10 @@
 --
 -- see: https://github.com/sol/hpack
 --
--- hash: 4b29b9e5703c56c1f7beabdcec14cf3007d6f6c6855088b8bf06da8f092b4b3d
+-- hash: 8981f38a42c85ba35d93927a4b2704ee3dfcf567fc0001372a20033f22daa14a
 
 name:           hledger-web
-version:        1.5
+version:        1.5.1
 synopsis:       Web interface for the hledger accounting tool
 description:    This is hledger's web interface.
                 It provides a more user-friendly and collaborative UI than the
@@ -124,7 +124,7 @@
 
 library
   ghc-options: -Wall -fno-warn-unused-do-bind -fno-warn-name-shadowing -fno-warn-missing-signatures -fno-warn-type-defaults -fno-warn-orphans
-  cpp-options: -DVERSION="1.5"
+  cpp-options: -DVERSION="1.5.1"
   build-depends:
       HUnit
     , base >=4.8 && <5
@@ -158,10 +158,10 @@
     , wai-handler-launch >=1.3
     , warp
     , yaml
-    , yesod >=1.4
-    , yesod-core
-    , yesod-form
-    , yesod-static
+    , yesod >=1.4 && <1.7
+    , yesod-core >=1.4 && <1.7
+    , yesod-form >=1.4 && <1.7
+    , yesod-static >=1.4 && <1.7
   if (flag(dev)) || (flag(library-only))
     cpp-options: -DDEVELOPMENT
   if flag(dev)
@@ -192,7 +192,7 @@
   hs-source-dirs:
       app
   ghc-options: -Wall -fno-warn-unused-do-bind -fno-warn-name-shadowing -fno-warn-missing-signatures -fno-warn-type-defaults -fno-warn-orphans
-  cpp-options: -DVERSION="1.5"
+  cpp-options: -DVERSION="1.5.1"
   build-depends:
       HUnit
     , base >=4.8 && <5
@@ -227,10 +227,10 @@
     , wai-handler-launch >=1.3
     , warp
     , yaml
-    , yesod >=1.4
-    , yesod-core
-    , yesod-form
-    , yesod-static
+    , yesod >=1.4 && <1.7
+    , yesod-core >=1.4 && <1.7
+    , yesod-form >=1.4 && <1.7
+    , yesod-static >=1.4 && <1.7
   if (flag(dev)) || (flag(library-only))
     cpp-options: -DDEVELOPMENT
   if flag(dev)
@@ -249,7 +249,7 @@
   hs-source-dirs:
       tests
   ghc-options: -Wall -fno-warn-unused-do-bind -fno-warn-name-shadowing -fno-warn-missing-signatures -fno-warn-type-defaults -fno-warn-orphans
-  cpp-options: -DVERSION="1.5"
+  cpp-options: -DVERSION="1.5.1"
   build-depends:
       HUnit
     , base >=4.8 && <5
@@ -285,10 +285,10 @@
     , wai-handler-launch >=1.3
     , warp
     , yaml
-    , yesod >=1.4
-    , yesod-core
-    , yesod-form
-    , yesod-static
+    , yesod >=1.4 && <1.7
+    , yesod-core >=1.4 && <1.7
+    , yesod-form >=1.4 && <1.7
+    , yesod-static >=1.4 && <1.7
     , yesod-test
   if (flag(dev)) || (flag(library-only))
     cpp-options: -DDEVELOPMENT
diff --git a/hledger-web.info b/hledger-web.info
--- a/hledger-web.info
+++ b/hledger-web.info
@@ -3,8 +3,8 @@
 
 File: hledger-web.info,  Node: Top,  Next: OPTIONS,  Up: (dir)
 
-hledger-web(1) hledger-web 1.5
-******************************
+hledger-web(1) hledger-web 1.5.1
+********************************
 
 hledger-web is hledger's web interface.  It starts a simple web
 application for browsing and adding transactions, and optionally opens
@@ -208,7 +208,7 @@
 
 Tag Table:
 Node: Top72
-Node: OPTIONS3152
-Ref: #options3237
+Node: OPTIONS3156
+Ref: #options3241
 
 End Tag Table
diff --git a/hledger-web.txt b/hledger-web.txt
--- a/hledger-web.txt
+++ b/hledger-web.txt
@@ -247,4 +247,4 @@
 
 
 
-hledger-web 1.5                  December 2017                  hledger-web(1)
+hledger-web 1.5.1                 March 2018                    hledger-web(1)
