diff --git a/Language/Haskell/GhcMod/GHCApi.hs b/Language/Haskell/GhcMod/GHCApi.hs index f4dcb1e..a0e73bb 100644 --- a/Language/Haskell/GhcMod/GHCApi.hs +++ b/Language/Haskell/GhcMod/GHCApi.hs @@ -91,8 +91,8 @@ initializeFlagsWithCradle opt cradle ghcopts logging where pkgDb = userPackageDbOptsForGhc $ cradlePackageDb cradle compOpts - | pkgDb == [] = CompilerOptions ghcopts importDirs [] - | otherwise = CompilerOptions (ghcopts ++ pkgDb) [wdir,rdir] [] + | null pkgDb = CompilerOptions ghcopts importDirs [] + | otherwise = CompilerOptions (ghcopts ++ pkgDb) [wdir,rdir] [] wdir = cradleCurrentDir cradle rdir = cradleRootDir cradle