@@ -55,11 +55,11 @@ run args () =
55 case oldOutline of
55 case oldOutline of
56 Outline.App outline ->
56 Outline.App outline ->
57 do changes <- makeAppPlan env pkg outline
57 do changes <- makeAppPlan env pkg outline
58− attemptChanges root env oldOutline V.toChars changes
58+ attemptChanges root env pkg oldOutline V.toChars changes
60 Outline.Pkg outline ->
60 Outline.Pkg outline ->
61 do changes <- makePkgPlan env pkg outline
61 do changes <- makePkgPlan env pkg outline
62− attemptChanges root env oldOutline C.toChars changes
62+ attemptChanges root env pkg oldOutline C.toChars changes
@@ -76,14 +76,14 @@ data Changes vsn
76type Task = Task.Task Exit.Install
76type Task = Task.Task Exit.Install
79−attemptChanges :: FilePath -> Solver.Env -> Outline.Outline -> (a -> String) -> Changes a -> Task ()
79+attemptChanges :: FilePath -> Solver.Env -> Pkg.Name -> Outline.Outline -> (a -> String) -> Changes a -> Task ()
80−attemptChanges root env oldOutline toChars changes =
80+attemptChanges root env pkg oldOutline toChars changes =
81 case changes of
81 case changes of
82 AlreadyInstalled ->
82 AlreadyInstalled ->
83 Task.io $ putStrLn "It is already installed!"
83 Task.io $ putStrLn "It is already installed!"
85 PromoteIndirect newOutline ->
85 PromoteIndirect newOutline ->
86− attemptChangesHelp root env oldOutline newOutline $
86+ attemptChangesHelp root env pkg oldOutline newOutline $
88 [ D.fillSep
88 [ D.fillSep
89 ["I","found","it","in","your","elm.json","file,"
89 ["I","found","it","in","your","elm.json","file,"
@@ -96,7 +96,7 @@ attemptChanges root env oldOutline toChars changes =
98 PromoteTest newOutline ->
98 PromoteTest newOutline ->
99− attemptChangesHelp root env oldOutline newOutline $
99+ attemptChangesHelp root env pkg oldOutline newOutline $
101 [ D.fillSep
101 [ D.fillSep
102 ["I","found","it","in","your","elm.json","file,"
102 ["I","found","it","in","your","elm.json","file,"
@@ -113,7 +113,7 @@ attemptChanges root env oldOutline toChars changes =
113 widths = Map.foldrWithKey (widen toChars) (Widths 0 0 0) changeDict
113 widths = Map.foldrWithKey (widen toChars) (Widths 0 0 0) changeDict
114 changeDocs = Map.foldrWithKey (addChange toChars widths) (Docs [] [] []) changeDict
114 changeDocs = Map.foldrWithKey (addChange toChars widths) (Docs [] [] []) changeDict
116− attemptChangesHelp root env oldOutline newOutline $ D.vcat $
116+ attemptChangesHelp root env pkg oldOutline newOutline $ D.vcat $
117 [ "Here is my plan:"
117 [ "Here is my plan:"
118 , viewChangeDocs changeDocs
118 , viewChangeDocs changeDocs
@@ -121,9 +121,9 @@ attemptChanges root env oldOutline toChars changes =
124−attemptChangesHelp :: FilePath -> Solver.Env -> Outline.Outline -> Outline.Outline -> D.Doc -> Task ()
124+attemptChangesHelp :: FilePath -> Solver.Env -> Pkg.Name -> Outline.Outline -> Outline.Outline -> D.Doc -> Task ()
125−attemptChangesHelp root env oldOutline newOutline question =
125+attemptChangesHelp root env pkg oldOutline newOutline question =
126− Task.eio Exit.InstallHasBadDetails $
126+ Task.eio (\_ -> Exit.InstallHasBadDetails pkg (Outline.encode newOutline)) $
127 do approved <- Reporting.ask question
127 do approved <- Reporting.ask question
128 if approved
128 if approved