Skip to content

Commit 78d2797

Browse files
authored
Merge pull request #6047 from commercialhaskell/re6046
Re #6046 Fix S-6739 error
2 parents 557174b + a1a608e commit 78d2797

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

doc/maintainers/stack_errors.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -333,7 +333,7 @@ to take stock of the errors that Stack itself can raise, by reference to the
333333
[S-7868] | TaskCycleBug PackageIdentifier
334334
[S-8923] | PackageIdMissingBug PackageIdentifier
335335
[S-7371] | AllInOneBuildBug
336-
[S-6739] | MulipleResultsBug PackageName [DumpPackage]
336+
[S-6739] | MultipleResultsBug PackageName [DumpPackage]
337337
[S-3121] | TemplateHaskellNotFoundBug
338338
[S-6901] | HaddockIndexNotFound
339339
[S-5452] | ShowBuildErrorBug

src/Stack/Build/Execute.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2088,7 +2088,7 @@ singleBuild ac@ActionContext {..} ee@ExecuteEnv {..} task@Task {..} installedMap
20882088
[dp] -> do
20892089
liftIO $ atomically $ modifyTVar' tvar (Map.insert (dpGhcPkgId dp) dp)
20902090
pure $ Just (dpGhcPkgId dp)
2091-
_ -> throwM $ MulipleResultsBug name dps
2091+
_ -> throwM $ MultipleResultsBug name dps
20922092

20932093
-- | Get the build status of all the package executables. Do so by
20942094
-- testing whether their expected output file exists, e.g.

src/Stack/Types/Build.hs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ data BuildException
135135
| TaskCycleBug PackageIdentifier
136136
| PackageIdMissingBug PackageIdentifier
137137
| AllInOneBuildBug
138-
| MulipleResultsBug PackageName [DumpPackage]
138+
| MultipleResultsBug PackageName [DumpPackage]
139139
| TemplateHaskellNotFoundBug
140140
| HaddockIndexNotFound
141141
| ShowBuildErrorBug
@@ -344,7 +344,7 @@ instance Exception BuildException where
344344
++ show ident
345345
displayException AllInOneBuildBug = bugReport "[S-7371]"
346346
"Cannot have an all-in-one build that also has a final build step."
347-
displayException (MulipleResultsBug name dps) = bugReport "[S-6739]"
347+
displayException (MultipleResultsBug name dps) = bugReport "[S-6739]" $
348348
"singleBuild: multiple results when describing installed package "
349349
++ show (name, dps)
350350
displayException TemplateHaskellNotFoundBug = bugReport "[S-3121]"

0 commit comments

Comments
 (0)