on master help sign in
add cases so all the pattern matches are complete again
24a7f65Evan Czaplicki
builder/src/Reporting/Exit.hs+40−4
@@ -140,6 +140,9 @@ diffToReport diff =
140 , D.indent 4 $ D.green $ "elm diff elm/html 5.1.1 6.0.0"
140 , D.indent 4 $ D.green $ "elm diff elm/html 5.1.1 6.0.0"
141 ]
141 ]
142
142
143+ DiffBadOutline outline ->
144+ toOutlineReport outline
145+
143 DiffApplication ->
146 DiffApplication ->
144 Help.report "CANNOT DIFF APPLICATIONS" Nothing
147 Help.report "CANNOT DIFF APPLICATIONS" Nothing
145 "It looks like you are running `elm diff` on an application, but it\
148 "It looks like you are running `elm diff` on an application, but it\
@@ -149,6 +152,9 @@ diffToReport diff =
149 , D.indent 4 $ D.green $ "elm diff elm/html 5.1.1 6.0.0"
152 , D.indent 4 $ D.green $ "elm diff elm/html 5.1.1 6.0.0"
150 ]
153 ]
151
154
155+ DiffNoExposed ->
156+ error "TODO DiffNoExposed"
157+
152 DiffUnpublished ->
158 DiffUnpublished ->
153 Help.report "UNPUBLISHED" Nothing
159 Help.report "UNPUBLISHED" Nothing
154 "This package is not published yet. There is nothing to diff against!"
160 "This package is not published yet. There is nothing to diff against!"
@@ -188,6 +194,12 @@ diffToReport diff =
188 DiffBadRegistry problem ->
194 DiffBadRegistry problem ->
189 error "TODO DiffBadRegistry" problem
195 error "TODO DiffBadRegistry" problem
190
196
197+ DiffBadDetails details ->
198+ error "TODO DiffBadDetails" details
199+
200+ DiffBadBuild buildProblem ->
201+ error "TODO DiffBadBuild" buildProblem
202+
191
203
192
204
193-- BUMP
205-- BUMP
@@ -205,6 +217,12 @@ data Bump
205bumpToReport :: Bump -> Help.Report
217bumpToReport :: Bump -> Help.Report
206bumpToReport bump =
218bumpToReport bump =
207 case bump of
219 case bump of
220+ BumpNoOutline ->
221+ error "TODO BumpNoOutline"
222+
223+ BumpBadOutline outline ->
224+ toOutlineReport outline
225+
208 BumpApplication ->
226 BumpApplication ->
209 Help.report "CANNOT BUMP APPLICATIONS" (Just "elm.json")
227 Help.report "CANNOT BUMP APPLICATIONS" (Just "elm.json")
210 "Your elm.json says this is an application. That means it cannot be published\
228 "Your elm.json says this is an application. That means it cannot be published\
@@ -299,8 +317,11 @@ publishToReport publish =
299 PublishNoOutline ->
317 PublishNoOutline ->
300 error "TODO PublishNoOutline"
318 error "TODO PublishNoOutline"
301
319
302− PublishBadOutline problem ->
320+ PublishBadOutline outline ->
321+ toOutlineReport outline
322+
323+ PublishBadDetails problem ->
303− error "TODO PublishBadOutline" problem
324+ error "TODO PublishBadDetails" problem
304
325
305 PublishMustHaveLatestRegistry problem ->
326 PublishMustHaveLatestRegistry problem ->
306 error "TODO PublishMustHaveLatestRegistry" problem
327 error "TODO PublishMustHaveLatestRegistry" problem
@@ -434,6 +455,9 @@ publishToReport publish =
434 \ named LICENSE. Add that file and you will be all set!"
455 \ named LICENSE. Add that file and you will be all set!"
435 ]
456 ]
436
457
458+ PublishBuildProblem buildProblem ->
459+ error "TODO PublishBuildProblem" buildProblem
460+
437 PublishCannotGetTag httpError ->
461 PublishCannotGetTag httpError ->
438 error "TODO PublishCannotGetTag" httpError
462 error "TODO PublishCannotGetTag" httpError
439
463
@@ -497,6 +521,18 @@ publishToReport publish =
497 ++ vsn ++ "` and publish your code from there."
521 ++ vsn ++ "` and publish your code from there."
498 ]
522 ]
499
523
524+ PublishZipBadDetails details ->
525+ error "TODO PublishZipBadDetails" details
526+
527+ PublishZipApplication ->
528+ error "TODO PublishZipApplication"
529+
530+ PublishZipNoExposed ->
531+ error "TODO PublishZipNoExposed"
532+
533+ PublishZipBuildProblem buildProblem ->
534+ error "TODO PublishZipBuildProblem" buildProblem
535+
500
536
501toBadReadmeReport :: String -> String -> Help.Report
537toBadReadmeReport :: String -> String -> Help.Report
502toBadReadmeReport title summary =
538toBadReadmeReport title summary =
@@ -778,8 +814,8 @@ detailsToReport details =
778 DetailsHandEditedDependencies ->
814 DetailsHandEditedDependencies ->
779 error "TODO DetailsHandEditedDependencies"
815 error "TODO DetailsHandEditedDependencies"
780
816
781− DetailsBadOutline outlineProblem ->
817+ DetailsBadOutline outline ->
782− toOutlineReport outlineProblem
818+ toOutlineReport outline
783
819
784 DetailsCannotGetRegistry problem ->
820 DetailsCannotGetRegistry problem ->
785 error "TODO DetailsCannotGetRegistry" problem
821 error "TODO DetailsCannotGetRegistry" problem