@@ -33,7 +33,7 @@ data PackageError
33 deriving (Show)
33 deriving (Show)
35data PackageWarning
35data PackageWarning
36− = ResolutionNotVersion PackageName
36+ = NoResolvedVersion PackageName
37 | UndeclaredDependency PackageName
37 | UndeclaredDependency PackageName
38 | UnacceptableVersion (PackageName, String)
38 | UnacceptableVersion (PackageName, String)
39 deriving (Show)
39 deriving (Show)
@@ -253,7 +253,7 @@ displayOtherError e = case e of
253 [ "An IO exception occurred:", show exc ]
253 [ "An IO exception occurred:", show exc ]
255data CollectedWarnings = CollectedWarnings
255data CollectedWarnings = CollectedWarnings
256− { resolutionNotVersions :: [PackageName]
256+ { noResolvedVersions :: [PackageName]
257 , undeclaredDependencies :: [PackageName]
257 , undeclaredDependencies :: [PackageName]
258 , unacceptableVersions :: [(PackageName, String)]
258 , unacceptableVersions :: [(PackageName, String)]
@@ -268,7 +268,7 @@ collectWarnings :: [PackageWarning] -> CollectedWarnings
268collectWarnings = foldMap singular
268collectWarnings = foldMap singular
270 singular w = case w of
270 singular w = case w of
271− ResolutionNotVersion pn -> CollectedWarnings [pn] [] []
271+ NoResolvedVersion pn -> CollectedWarnings [pn] [] []
272 UndeclaredDependency pn -> CollectedWarnings [] [pn] []
272 UndeclaredDependency pn -> CollectedWarnings [] [pn] []
273 UnacceptableVersion t -> CollectedWarnings [] [] [t]
273 UnacceptableVersion t -> CollectedWarnings [] [] [t]
@@ -276,7 +276,7 @@ renderWarnings :: [PackageWarning] -> Box
276renderWarnings warns =
276renderWarnings warns =
277 let CollectedWarnings{..} = collectWarnings warns
277 let CollectedWarnings{..} = collectWarnings warns
278 go toBox warns' = toBox <$> NonEmpty.nonEmpty warns'
278 go toBox warns' = toBox <$> NonEmpty.nonEmpty warns'
279− mboxes = [ go warnResolutionNotVersions resolutionNotVersions
279+ mboxes = [ go warnNoResolvedVersions noResolvedVersions
280 , go warnUndeclaredDependencies undeclaredDependencies
280 , go warnUndeclaredDependencies undeclaredDependencies
281 , go warnUnacceptableVersions unacceptableVersions
281 , go warnUnacceptableVersions unacceptableVersions
@@ -286,18 +286,18 @@ renderWarnings warns =
286 , indented (vcat (intersperse spacer boxes))
286 , indented (vcat (intersperse spacer boxes))
289−warnResolutionNotVersions :: NonEmpty PackageName -> Box
289+warnNoResolvedVersions :: NonEmpty PackageName -> Box
290−warnResolutionNotVersions pkgNames =
290+warnNoResolvedVersions pkgNames =
291 let singular = NonEmpty.length pkgNames == 1
291 let singular = NonEmpty.length pkgNames == 1
292 pl a b = if singular then b else a
292 pl a b = if singular then b else a
294 packages = pl "packages" "package"
294 packages = pl "packages" "package"
295− were = pl "were" "was"
296 anyOfThese = pl "any of these" "this"
295 anyOfThese = pl "any of these" "this"
297 these = pl "these" "this"
296 these = pl "these" "this"
298 in vcat $
297 in vcat $
299 [ para (concat
298 [ para (concat
300− ["The following ", packages, " ", were, " not resolved to a version:"])
299+ ["The following ", packages, " did not appear to have a resolved "
302 bulletedList runPackageName (NonEmpty.toList pkgNames)
302 bulletedList runPackageName (NonEmpty.toList pkgNames)