summaryrefslogtreecommitdiff
path: root/Omni/Log/Concurrent.hs
diff options
context:
space:
mode:
Diffstat (limited to 'Omni/Log/Concurrent.hs')
-rw-r--r--Omni/Log/Concurrent.hs6
1 files changed, 4 insertions, 2 deletions
diff --git a/Omni/Log/Concurrent.hs b/Omni/Log/Concurrent.hs
index b064190..1a82507 100644
--- a/Omni/Log/Concurrent.hs
+++ b/Omni/Log/Concurrent.hs
@@ -26,7 +26,7 @@ import qualified System.Environment as Env
import qualified System.IO as IO
import System.IO.Unsafe (unsafePerformIO)
-data BuildState = Pending | Building | Success | Failed
+data BuildState = Analyzing | Pending | Building | Success | Failed
deriving (Eq, Show)
data LineManager = LineManager
@@ -92,7 +92,7 @@ initializeLines LineManager {..} =
ANSI.hSetCursorColumn IO.stderr 0
ANSI.hClearLine IO.stderr
let nsText = Text.pack (Namespace.toPath ns)
- IO.hPutStrLn IO.stderr (Text.unpack <| "[…] " <> nsText)
+ IO.hPutStrLn IO.stderr (Text.unpack <| "[+] " <> nsText)
IO.hFlush IO.stderr
updateLine :: Namespace -> Text -> IO ()
@@ -146,6 +146,8 @@ updateLineState ns buildState = do
Rainbow.hPutChunks IO.stderr [fore green <| chunk <| "[✓] " <> nsText]
Failed ->
Rainbow.hPutChunks IO.stderr [fore red <| chunk <| "[x] " <> nsText]
+ Analyzing ->
+ IO.hPutStr IO.stderr (Text.unpack <| "[+] " <> nsText)
Pending ->
IO.hPutStr IO.stderr (Text.unpack <| "[…] " <> nsText)
Building ->