@@ -184,6 +184,7 @@ data CabalInstallException
184
184
| CorruptedIndexCache String
185
185
| UnusableIndexState RemoteRepo Timestamp Timestamp
186
186
| MissingPackageList RemoteRepo
187
+ | MultiPackageCoverageUnsupported
187
188
deriving (Show , Typeable )
188
189
189
190
exceptionCodeCabalInstall :: CabalInstallException -> Int
@@ -334,6 +335,7 @@ exceptionCodeCabalInstall e = case e of
334
335
CorruptedIndexCache {} -> 7158
335
336
UnusableIndexState {} -> 7159
336
337
MissingPackageList {} -> 7160
338
+ MultiPackageCoverageUnsupported -> 7161
337
339
338
340
exceptionMessageCabalInstall :: CabalInstallException -> String
339
341
exceptionMessageCabalInstall e = case e of
@@ -849,6 +851,9 @@ exceptionMessageCabalInstall e = case e of
849
851
" The package list for '"
850
852
++ unRepoName (remoteRepoName repoRemote)
851
853
++ " ' does not exist. Run 'cabal update' to download it."
854
+ MultiPackageCoverageUnsupported ->
855
+ " --enable-coverage was specified, but program coverage is not supported in "
856
+ ++ " multiple package projects because of a HPC limitation (see cabal#9493)."
852
857
853
858
instance Exception (VerboseException CabalInstallException ) where
854
859
displayException :: VerboseException CabalInstallException -> [Char ]
0 commit comments