@@ -55,11 +55,11 @@ run args () =
5555 case oldOutline of
5656 Outline.App outline ->
5757 do changes <- makeAppPlan env pkg outline
58− attemptChanges root env oldOutline V.toChars changes
58+ attemptChanges root env pkg oldOutline V.toChars changes
5959
6060 Outline.Pkg outline ->
6161 do changes <- makePkgPlan env pkg outline
62− attemptChanges root env oldOutline C.toChars changes
62+ attemptChanges root env pkg oldOutline C.toChars changes
6363
6464
6565
@@ -76,14 +76,14 @@ data Changes vsn
7676type Task = Task.Task Exit.Install
7777
7878
79−attemptChanges :: FilePath -> Solver.Env -> Outline.Outline -> (a -> String) -> Changes a -> Task ()
80−attemptChanges root env oldOutline toChars changes =
79+attemptChanges :: FilePath -> Solver.Env -> Pkg.Name -> Outline.Outline -> (a -> String) -> Changes a -> Task ()
80+attemptChanges root env pkg oldOutline toChars changes =
8181 case changes of
8282 AlreadyInstalled ->
8383 Task.io $ putStrLn "It is already installed!"
8484
8585 PromoteIndirect newOutline ->
86− attemptChangesHelp root env oldOutline newOutline $
86+ attemptChangesHelp root env pkg oldOutline newOutline $
8787 D.vcat
8888 [ D.fillSep
8989 ["I","found","it","in","your","elm.json","file,"
@@ -96,7 +96,7 @@ attemptChanges root env oldOutline toChars changes =
9696 ]
9797
9898 PromoteTest newOutline ->
99− attemptChangesHelp root env oldOutline newOutline $
99+ attemptChangesHelp root env pkg oldOutline newOutline $
100100 D.vcat
101101 [ D.fillSep
102102 ["I","found","it","in","your","elm.json","file,"
@@ -113,7 +113,7 @@ attemptChanges root env oldOutline toChars changes =
113113 widths = Map.foldrWithKey (widen toChars) (Widths 0 0 0) changeDict
114114 changeDocs = Map.foldrWithKey (addChange toChars widths) (Docs [] [] []) changeDict
115115 in
116− attemptChangesHelp root env oldOutline newOutline $ D.vcat $
116+ attemptChangesHelp root env pkg oldOutline newOutline $ D.vcat $
117117 [ "Here is my plan:"
118118 , viewChangeDocs changeDocs
119119 , ""
@@ -121,9 +121,9 @@ attemptChanges root env oldOutline toChars changes =
121121 ]
122122
123123
124−attemptChangesHelp :: FilePath -> Solver.Env -> Outline.Outline -> Outline.Outline -> D.Doc -> Task ()
125−attemptChangesHelp root env oldOutline newOutline question =
126− Task.eio Exit.InstallHasBadDetails $
124+attemptChangesHelp :: FilePath -> Solver.Env -> Pkg.Name -> Outline.Outline -> Outline.Outline -> D.Doc -> Task ()
125+attemptChangesHelp root env pkg oldOutline newOutline question =
126+ Task.eio (\_ -> Exit.InstallHasBadDetails pkg (Outline.encode newOutline)) $
127127 do approved <- Reporting.ask question
128128 if approved
129129 then