Skip to content

Commit

Permalink
Merge pull request #6047 from commercialhaskell/re6046
Browse files Browse the repository at this point in the history
Re #6046 Fix S-6739 error
  • Loading branch information
mpilgrem authored Jan 30, 2023
2 parents 557174b + a1a608e commit 78d2797
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion doc/maintainers/stack_errors.md
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,7 @@ to take stock of the errors that Stack itself can raise, by reference to the
[S-7868] | TaskCycleBug PackageIdentifier
[S-8923] | PackageIdMissingBug PackageIdentifier
[S-7371] | AllInOneBuildBug
[S-6739] | MulipleResultsBug PackageName [DumpPackage]
[S-6739] | MultipleResultsBug PackageName [DumpPackage]
[S-3121] | TemplateHaskellNotFoundBug
[S-6901] | HaddockIndexNotFound
[S-5452] | ShowBuildErrorBug
Expand Down
2 changes: 1 addition & 1 deletion src/Stack/Build/Execute.hs
Original file line number Diff line number Diff line change
Expand Up @@ -2088,7 +2088,7 @@ singleBuild ac@ActionContext {..} ee@ExecuteEnv {..} task@Task {..} installedMap
[dp] -> do
liftIO $ atomically $ modifyTVar' tvar (Map.insert (dpGhcPkgId dp) dp)
pure $ Just (dpGhcPkgId dp)
_ -> throwM $ MulipleResultsBug name dps
_ -> throwM $ MultipleResultsBug name dps

-- | Get the build status of all the package executables. Do so by
-- testing whether their expected output file exists, e.g.
Expand Down
4 changes: 2 additions & 2 deletions src/Stack/Types/Build.hs
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ data BuildException
| TaskCycleBug PackageIdentifier
| PackageIdMissingBug PackageIdentifier
| AllInOneBuildBug
| MulipleResultsBug PackageName [DumpPackage]
| MultipleResultsBug PackageName [DumpPackage]
| TemplateHaskellNotFoundBug
| HaddockIndexNotFound
| ShowBuildErrorBug
Expand Down Expand Up @@ -344,7 +344,7 @@ instance Exception BuildException where
++ show ident
displayException AllInOneBuildBug = bugReport "[S-7371]"
"Cannot have an all-in-one build that also has a final build step."
displayException (MulipleResultsBug name dps) = bugReport "[S-6739]"
displayException (MultipleResultsBug name dps) = bugReport "[S-6739]" $
"singleBuild: multiple results when describing installed package "
++ show (name, dps)
displayException TemplateHaskellNotFoundBug = bugReport "[S-3121]"
Expand Down

0 comments on commit 78d2797

Please sign in to comment.