diff --git a/lib/Database/Mallard/Parser.hs b/lib/Database/Mallard/Parser.hs
--- a/lib/Database/Mallard/Parser.hs
+++ b/lib/Database/Mallard/Parser.hs
@@ -1,3 +1,4 @@
+{-# LANGUAGE CPP               #-}
 {-# LANGUAGE OverloadedStrings #-}
 {-# LANGUAGE QuasiQuotes       #-}
 {-# LANGUAGE TemplateHaskell   #-}
diff --git a/mallard.cabal b/mallard.cabal
--- a/mallard.cabal
+++ b/mallard.cabal
@@ -1,5 +1,5 @@
 name:               mallard
-version:            0.5.0.0
+version:            0.5.0.1
 synopsis:           Database migration and testing as a library.
 description:        Please see README.md
 homepage:           https://github.com/AndrewRademacher/mallard
@@ -40,7 +40,7 @@
                      , hasql-transaction
                      , Interpolation
                      , lens
-                     , megaparsec
+                     , megaparsec   <6
                      , mtl
                      , path
                      , path-io
