1{-# OPTIONS_GHC -Wall #-}
2module Reporting.Progress
15import Control.Concurrent.Chan (Chan, writeChan)
16import Control.Concurrent.MVar (MVar, readMVar)
17import qualified Elm.Compiler.Module as Module
18import Deps.Diff (Magnitude)
19import Elm.Package (Name, Version)
20import Reporting.Exit (Exit)
29 { _tell :: Progress -> IO ()
30 , _end :: Maybe Exit -> IO ()
34makeReporter :: Chan Msg -> MVar () -> Reporter
35makeReporter chan mvar =
38 writeChan chan (Progress progress)
41 do writeChan chan (End maybeError)
47silentReporter :: Reporter
58data Msg = Progress Progress | End (Maybe Exit)
64 | DownloadStart [(Name, Version)]
65 | DownloadPkgStart Name Version
66 | DownloadPkgEnd Name Version Outcome
76 | CompileFileStart Module.Raw
77 | CompileFileEnd Module.Raw Outcome
81 | PublishStart Name Version (Maybe [Version])
82 | PublishCheckBump Version BumpPhase
83 | PublishProgress PublishPhase (Maybe Outcome)
87 | UnableToLoadLatestPackages
90data Outcome = Good | Bad
105 | 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