@@ -65,7 +65,7 @@ data UserError
6565
6666data RepositoryFieldError
6767 = RepositoryFieldMissing
68- | BadRepositoryType String
68+ | BadRepositoryType Text
6969 | NotOnGithub
7070 deriving (Show )
7171
@@ -213,7 +213,7 @@ displayUserError e = case e of
213213 , " installed:"
214214 ])
215215 ] ++
216- bulletedList runPackageName (NonEmpty. toList pkgs)
216+ bulletedListT runPackageName (NonEmpty. toList pkgs)
217217 ++
218218 [ spacer
219219 , para (concat
@@ -263,7 +263,7 @@ displayRepositoryError err = case err of
263263 BadRepositoryType ty ->
264264 para (concat
265265 [ " In your bower.json file, the repository type is currently listed as "
266- , " \" " ++ ty ++ " \" . Currently, only git repositories are supported. "
266+ , " \" " ++ T. unpack ty ++ " \" . Currently, only git repositories are supported. "
267267 , " Please publish your code in a git repository, and then update the "
268268 , " repository type in your bower.json file to \" git\" ."
269269 ])
@@ -361,7 +361,7 @@ warnNoResolvedVersions pkgNames =
361361 [" The following " , packages, " did not appear to have a resolved "
362362 , " version:" ])
363363 ] ++
364- bulletedList runPackageName (NonEmpty. toList pkgNames)
364+ bulletedListT runPackageName (NonEmpty. toList pkgNames)
365365 ++
366366 [ spacer
367367 , para (concat
@@ -385,7 +385,7 @@ warnUndeclaredDependencies pkgNames =
385385 [ " The following Bower " , packages, " " , are, " installed, but not "
386386 , " declared as " , dependencies, " in your bower.json file:"
387387 ])
388- : bulletedList runPackageName (NonEmpty. toList pkgNames)
388+ : bulletedListT runPackageName (NonEmpty. toList pkgNames)
389389
390390warnUnacceptableVersions :: NonEmpty (PackageName , Text ) -> Box
391391warnUnacceptableVersions pkgs =
@@ -403,7 +403,7 @@ warnUnacceptableVersions pkgs =
403403 , " not be parsed:"
404404 ])
405405 ] ++
406- bulletedList showTuple (NonEmpty. toList pkgs)
406+ bulletedListT showTuple (NonEmpty. toList pkgs)
407407 ++
408408 [ spacer
409409 , para (concat
@@ -414,7 +414,7 @@ warnUnacceptableVersions pkgs =
414414 ])
415415 ]
416416 where
417- showTuple (pkgName, tag) = runPackageName pkgName ++ " #" ++ T. unpack tag
417+ showTuple (pkgName, tag) = runPackageName pkgName <> " #" <> tag
418418
419419warnDirtyWorkingTree :: Box
420420warnDirtyWorkingTree =
0 commit comments