diff --git a/CHANGELOG.md b/CHANGELOG.md
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,5 +1,5 @@
 ## MASTER
-## Dotenv 0.5.2.2
+## Dotenv 0.5.2.3
 * Support `megaparsec` >= 6.4.0
 
 ## Dotenv 0.5.2.1
diff --git a/dotenv.cabal b/dotenv.cabal
--- a/dotenv.cabal
+++ b/dotenv.cabal
@@ -1,5 +1,5 @@
 name:                dotenv
-version:             0.5.2.2
+version:             0.5.2.3
 synopsis:            Loads environment variables from dotenv files
 homepage:            https://github.com/stackbuilders/dotenv-hs
 description:
diff --git a/src/Configuration/Dotenv/Parse.hs b/src/Configuration/Dotenv/Parse.hs
--- a/src/Configuration/Dotenv/Parse.hs
+++ b/src/Configuration/Dotenv/Parse.hs
@@ -18,12 +18,16 @@
 module Configuration.Dotenv.Parse (configParser) where
 
 import           Configuration.Dotenv.ParsedVariable
-#if !MIN_VERSION_megaparsec(6,4,0)
-import           Control.Applicative
+#if MIN_VERSION_base(4,8,0)
+import           Control.Applicative                 (empty, many, some, (<|>))
+#else
+import           Control.Applicative                 (empty, many, some, (*>),
+                                                      (<$>), (<*), (<*>), (<|>))
 #endif
-import           Control.Monad
+import           Control.Monad                       (void)
 import           Data.Void                           (Void)
-import           Text.Megaparsec
+import           Text.Megaparsec                     (Parsec, between, eof,
+                                                      sepEndBy, (<?>))
 import           Text.Megaparsec.Char
 import qualified Text.Megaparsec.Char.Lexer          as L
 
