diff --git a/src/Text/Trifecta/Highlight.hs b/src/Text/Trifecta/Highlight.hs
--- a/src/Text/Trifecta/Highlight.hs
+++ b/src/Text/Trifecta/Highlight.hs
@@ -90,7 +90,7 @@
     ln no = Html5.a ! name (toValue $ "line-" ++ show no) $ Empty
     effects = sort $ [ i | (Interval lo hi, tok) <- intersections mempty (delta r) intervals
                      , i <- [ (Leaf "span" "<span" ">" ! class_ (toValue $ show tok)) :@ bytes lo
-                            , preEscapedString "</span>" :@ bytes hi
+                            , preEscapedToHtml ("</span>" :: String) :@ bytes hi
                             ]
                      ] ++ imap (\k i -> ln k :@ i) (L.elemIndices '\n' lbs)
     go _ cs [] = unsafeLazyByteString cs
@@ -125,7 +125,7 @@
 instance ToMarkup HighlightDoc where
   toMarkup (HighlightDoc t css cs) = docTypeHtml $ do
     head $ do
-      preEscapedString "<!-- Generated by trifecta, http://github.com/ekmett/trifecta/ -->\n"
+      preEscapedToHtml ("<!-- Generated by trifecta, http://github.com/ekmett/trifecta/ -->\n" :: String)
       title $ toHtml t
       link ! rel "stylesheet" ! type_ "text/css" ! href (toValue css)
     body $ toHtml cs
diff --git a/trifecta.cabal b/trifecta.cabal
--- a/trifecta.cabal
+++ b/trifecta.cabal
@@ -1,6 +1,6 @@
 name:          trifecta
 category:      Text, Parsing, Diagnostics, Pretty Printer, Logging
-version:       1.5.1.1
+version:       1.5.1.2
 license:       BSD3
 cabal-version: >= 1.10
 license-file:  LICENSE
