1{-# OPTIONS_GHC -Wall #-}
2module Reporting.Progress
15import Control.Concurrent.Chan (Chan, writeChan)
16import Control.Concurrent.MVar (MVar, newEmptyMVar, readMVar)
17import qualified Elm.ModuleName as ModuleName
18import Deps.Diff (Magnitude)
19import qualified Elm.Package as Pkg
20import qualified Elm.Version as V
21import qualified Reporting.Doc as D
22import Reporting.Exit (Exit)
31 { _tell :: Progress -> IO ()
32 , _ask :: D.Doc -> IO Bool
33 , _end :: Maybe Exit -> IO ()
37makeReporter :: Chan Msg -> MVar () -> Reporter
38makeReporter chan mvar =
41 writeChan chan (Progress progress)
44 do var <- newEmptyMVar
45 writeChan chan (Ask doc var)
49 do writeChan chan (End maybeError)
55silentReporter :: Reporter
69 | Ask D.Doc (MVar Bool)
76 | DownloadStart [(Pkg.Name, V.Version)]
77 | DownloadPkgStart Pkg.Name V.Version
78 | DownloadPkgEnd Pkg.Name V.Version Outcome
88 | CompileFileStart ModuleName.Raw
89 | CompileFileEnd ModuleName.Raw Outcome
93 | PublishStart Pkg.Name V.Version (Maybe [V.Version])
94 | PublishCheckBump V.Version BumpPhase
95 | PublishProgress PublishPhase (Maybe Outcome)
99 | UnableToLoadLatestPackages
102data Outcome = Good | Bad
117 | GoodBump V.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