1{-# OPTIONS_GHC -Wall #-}
2module Reporting.Progress
14import Control.Concurrent.Chan (Chan, writeChan)
15import Control.Concurrent.MVar (MVar, readMVar)
16import qualified Elm.Compiler.Module as Module
17import Deps.Diff (Magnitude)
18import Elm.Package (Name, Version)
19import Reporting.Error2 (Error)
28 { _tell :: Progress -> IO ()
29 , _end :: Maybe Error -> IO ()
33makeReporter :: Chan Msg -> MVar () -> Reporter
34makeReporter chan mvar =
37 writeChan chan (Progress progress)
40 do writeChan chan (End maybeError)
50data Msg = Progress Progress | End (Maybe Error)
56 | DownloadStart [(Name, Version)]
57 | DownloadPkgStart Name Version
58 | DownloadPkgEnd Name Version Outcome
68 | CompileFileStart Module.Raw
69 | CompileFileEnd Module.Raw Outcome
73 | PublishStart Name Version (Maybe [Version])
74 | PublishCheckBump Version BumpPhase
75 | PublishProgress PublishPhase (Maybe Outcome)
79 | UnableToLoadLatestPackages
82data Outcome = Good | Bad
97 | 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