1{-# OPTIONS_GHC -Wall #-}
2module Reporting.Progress
15import Control.Concurrent.Chan (Chan, writeChan)
16import Control.Concurrent.MVar (MVar, newEmptyMVar, readMVar)
17import qualified Elm.Compiler.Module as Module
18import Deps.Diff (Magnitude)
19import Elm.Package (Name, Version)
20import qualified Reporting.Doc as D
21import Reporting.Exit (Exit)
30 { _tell :: Progress -> IO ()
31 , _ask :: D.Doc -> IO Bool
32 , _end :: Maybe Exit -> IO ()
36makeReporter :: Chan Msg -> MVar () -> Reporter
37makeReporter chan mvar =
40 writeChan chan (Progress progress)
43 do var <- newEmptyMVar
44 writeChan chan (Ask doc var)
48 do writeChan chan (End maybeError)
54silentReporter :: Reporter
68 | Ask D.Doc (MVar Bool)
75 | DownloadStart [(Name, Version)]
76 | DownloadPkgStart Name Version
77 | DownloadPkgEnd Name Version Outcome
87 | CompileFileStart Module.Raw
88 | CompileFileEnd Module.Raw Outcome
92 | PublishStart Name Version (Maybe [Version])
93 | PublishCheckBump Version BumpPhase
94 | PublishProgress PublishPhase (Maybe Outcome)
98 | UnableToLoadLatestPackages
101data Outcome = Good | Bad
116 | GoodBump Version Magnitude
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list