diff --git a/CHANGELOG.md b/CHANGELOG.md index 736d969..5c78e8f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,6 @@ # Revision history for nix-output-monitor -## 1.0.4.1 -- 2022-02-25 +## 1.0.4.1 & 1.0.4.2 -- 2022-02-25 * Rename an internal variable for relude 1.0 compat ## 1.0.4.0 -- 2021-12-03 diff --git a/bin/Main.hs b/bin/Main.hs index 8a5cbd6..319d08b 100644 --- a/bin/Main.hs +++ b/bin/Main.hs @@ -14,7 +14,7 @@ import Update (countPaths, failedBuilds, initalState, updateState) main :: IO () main = do - getArgs >>= \case + System.Environment.getArgs >>= \case [] -> pass ["--version"] -> do hPutStrLn stderr ("nix-output-monitor " <> fromString (showVersion version)) diff --git a/nix-output-monitor.cabal b/nix-output-monitor.cabal index fbca317..5fd2da6 100644 --- a/nix-output-monitor.cabal +++ b/nix-output-monitor.cabal @@ -1,6 +1,6 @@ cabal-version: 2.4 name: nix-output-monitor -version: 1.0.4.1 +version: 1.0.4.2 synopsis: Parses output of nix-build to show additional information description: A tool you can pipe stdout and stderr into to get your terminal output enriched with useful information. diff --git a/src/IO.hs b/src/IO.hs index ba1311b..e4a59fb 100644 --- a/src/IO.hs +++ b/src/IO.hs @@ -72,7 +72,7 @@ processText parser stateVar updater printerMay lazyInput = do clearLine putText buffer when (linesToWrite > 0) $ putTextLn output - hFlush stdout + System.IO.hFlush stdout waitForInput :: IO () waitForInput = atomically $ check . not . Text.null =<< readTVar bufferVar