diff --git a/CHANGELOG.markdown b/CHANGELOG.markdown
--- a/CHANGELOG.markdown
+++ b/CHANGELOG.markdown
@@ -1,3 +1,7 @@
+2.1.4 [2024.02.07]
+------------------
+* Allow building with `ansi-terminal-1.1.*`.
+
 2.1.3 [2023.08.07]
 ------------------
 * Allow building with `deepseq-1.5.*`.
diff --git a/examples/trifecta-examples.cabal b/examples/trifecta-examples.cabal
--- a/examples/trifecta-examples.cabal
+++ b/examples/trifecta-examples.cabal
@@ -21,9 +21,10 @@
              , GHC == 8.8.4
              , GHC == 8.10.7
              , GHC == 9.0.2
-             , GHC == 9.2.7
-             , GHC == 9.4.5
-             , GHC == 9.6.2
+             , GHC == 9.2.8
+             , GHC == 9.4.8
+             , GHC == 9.6.4
+             , GHC == 9.8.1
 extra-source-files: RFC2616.txt RFC2616-malformed.txt
 
 source-repository head
diff --git a/src/Text/Trifecta/Rendering.hs b/src/Text/Trifecta/Rendering.hs
--- a/src/Text/Trifecta/Rendering.hs
+++ b/src/Text/Trifecta/Rendering.hs
@@ -1,3 +1,4 @@
+{-# language CPP                   #-}
 {-# language DeriveDataTypeable    #-}
 {-# language DeriveGeneric         #-}
 {-# language FlexibleInstances     #-}
@@ -103,6 +104,9 @@
   go (SetUnderlining NoUnderline          : xs) = annotate deunderline . go xs
   go (SetUnderlining SingleUnderline      : xs) = annotate underlined . go xs
   go (SetColor f i c                      : xs) = case f of
+#if MIN_VERSION_ansi_terminal(1,1,0)
+    Underlining -> go xs
+#endif
     Foreground -> case i of
       Dull -> case c of
         Black   -> annotate (color Pretty.Black) . go xs
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:       2.1.3
+version:       2.1.4
 license:       BSD3
 cabal-version: 1.18
 license-file:  LICENSE
@@ -28,9 +28,10 @@
              , GHC == 8.8.4
              , GHC == 8.10.7
              , GHC == 9.0.2
-             , GHC == 9.2.7
-             , GHC == 9.4.5
-             , GHC == 9.6.2
+             , GHC == 9.2.8
+             , GHC == 9.4.8
+             , GHC == 9.6.4
+             , GHC == 9.8.1
 
 extra-doc-files:
   images/*.png
@@ -68,7 +69,7 @@
     Text.Trifecta.Util.Pretty
 
   build-depends:
-    ansi-terminal               >= 0.6     && < 1.1,
+    ansi-terminal               >= 0.6     && < 1.2,
     array                       >= 0.5.1.1 && < 0.6,
     base                        >= 4.9     && < 5,
     blaze-builder               >= 0.3.0.1 && < 0.5,
@@ -77,7 +78,7 @@
     bytestring                  >= 0.9.1   && < 0.13,
     charset                     >= 0.3.5.1 && < 1,
     comonad                     >= 5       && < 6,
-    containers                  >= 0.5.7.0 && < 0.7,
+    containers                  >= 0.5.7.0 && < 0.8,
     deepseq                     >= 1.4.2.0 && < 1.6,
     fingertree                  >= 0.1     && < 0.2,
     ghc-prim,
