diff --git a/changelog.md b/changelog.md
--- a/changelog.md
+++ b/changelog.md
@@ -1,5 +1,11 @@
 # doctemplates
 
+## 0.8.1
+
+  * Depend on doclayout 0.3, which adds an additional method
+    on the HasChars class.  This fixes some stack overflows
+    in rendering very long lines.
+
 ## 0.8
 
   * Change `Filter` data type to `Pipe`.  Use the nomenclature of
diff --git a/doctemplates.cabal b/doctemplates.cabal
--- a/doctemplates.cabal
+++ b/doctemplates.cabal
@@ -1,5 +1,5 @@
 name:                doctemplates
-version:             0.8
+version:             0.8.1
 synopsis:            Pandoc-style document templates
 description:         This is the text templating system used by pandoc.
                      It supports variable interpolation, iteration,
@@ -34,7 +34,7 @@
                        aeson,
                        HsYAML,
                        text,
-                       doclayout >= 0.2 && < 0.3,
+                       doclayout >= 0.3 && < 0.4,
                        containers,
                        vector,
                        filepath,
@@ -53,7 +53,7 @@
   main-is:             test.hs
   build-depends:       base,
                        doctemplates,
-                       doclayout >= 0.2 && < 0.3,
+                       doclayout >= 0.3 && < 0.4,
                        containers,
                        aeson,
                        Glob,
@@ -72,7 +72,7 @@
   Main-Is:         bench.hs
   Hs-Source-Dirs:  bench
   Build-Depends:   doctemplates,
-                   doclayout >= 0.2 && < 0.3,
+                   doclayout >= 0.3 && < 0.4,
                    base >= 4.8 && < 5,
                    criterion >= 1.0 && < 1.6,
                    filepath,
