diff --git a/pandoc.cabal b/pandoc.cabal
index 70a7bdbab..2d85a771c 100644
--- a/pandoc.cabal
+++ b/pandoc.cabal
@@ -436,6 +436,7 @@ library
                    Text.Pandoc.Shared,
                    Text.Pandoc.MediaBag,
                    Text.Pandoc.Error,
+                   Text.Pandoc.Filter,
                    Text.Pandoc.Readers,
                    Text.Pandoc.Readers.HTML,
                    Text.Pandoc.Readers.LaTeX,
@@ -513,8 +514,7 @@ library
                    Text.Pandoc.ImageSize,
                    Text.Pandoc.BCP47,
                    Text.Pandoc.Class
-  other-modules:   Text.Pandoc.Filter,
-                   Text.Pandoc.Filter.JSON,
+  other-modules:   Text.Pandoc.Filter.JSON,
                    Text.Pandoc.Filter.Lua,
                    Text.Pandoc.Filter.Path,
                    Text.Pandoc.Readers.Docx.Lists,