Skip to content

Commit 3f760c1

Browse files
committed
fix: Use readFile instead of readFile' for GHC 8.10 on ubuntu-latest
1 parent d237eb3 commit 3f760c1

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

app/Main.hs

+1-2
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ import Paths_dotenv (version)
1414
import Configuration.Dotenv (Config (..), defaultConfig, loadFile)
1515
import System.Directory (doesFileExist)
1616
import System.Exit (exitWith)
17-
import System.IO (readFile')
1817
import System.Process (system)
1918

2019
data Options = Options
@@ -158,7 +157,7 @@ loadFlagsFromConfig = do
158157
configExists <- doesFileExist configFile
159158
if not configExists then return defaultFlags
160159
else do
161-
arguments <- words <$> readFile' configFile
160+
arguments <- words <$> readFile configFile
162161
case execParserPure defaultPrefs (mkOpts flagsP) arguments of
163162
result@(Failure _) -> do
164163
putStrLn "There were errors while parsing the configuration file"

0 commit comments

Comments
 (0)