diff --git a/pandoc.cabal b/pandoc.cabal
index 18c66ed0e..8c35a25b4 100644
--- a/pandoc.cabal
+++ b/pandoc.cabal
@@ -316,7 +316,7 @@ library
                  tagsoup >= 0.13.7 && < 0.15,
                  base64-bytestring >= 0.1 && < 1.1,
                  zlib >= 0.5 && < 0.7,
-                 skylighting >= 0.3.5 && < 0.4,
+                 skylighting >= 0.4 && <0.5,
                  data-default >= 0.4 && < 0.8,
                  temporary >= 1.1 && < 1.3,
                  blaze-html >= 0.5 && < 0.10,
@@ -553,7 +553,7 @@ test-suite test-pandoc
                   filepath >= 1.1 && < 1.5,
                   hslua >= 0.8 && < 0.9,
                   process >= 1.2.3 && < 1.7,
-                  skylighting >= 0.3.5 && < 0.4,
+                  skylighting >= 0.4 && < 0.5,
                   temporary >= 1.1 && < 1.3,
                   Diff >= 0.2 && < 0.4,
                   tasty >= 0.11 && < 0.12,
diff --git a/stack.pkg.yaml b/stack.pkg.yaml
index ffa304b64..a9c04afeb 100644
--- a/stack.pkg.yaml
+++ b/stack.pkg.yaml
@@ -19,7 +19,7 @@ packages:
 extra-deps:
 - texmath-0.9.4.2
 - hslua-0.8.0
-- skylighting-0.3.5
+- skylighting-0.4
 - cmark-gfm-0.1.1
 - QuickCheck-2.10.0.1
 - tasty-quickcheck-0.9.1
diff --git a/stack.yaml b/stack.yaml
index eeb6f4cdb..90f1ce83b 100644
--- a/stack.yaml
+++ b/stack.yaml
@@ -9,7 +9,7 @@ packages:
 extra-deps:
 - texmath-0.9.4.2
 - hslua-0.8.0
-- skylighting-0.3.5
+- skylighting-0.4
 - cmark-gfm-0.1.1
 - QuickCheck-2.10.0.1
 - tasty-quickcheck-0.9.1