diff options
author | Krzysztof Gogolewski <krzysztof.gogolewski@tweag.io> | 2022-10-24 19:52:40 +0200 |
---|---|---|
committer | Marge Bot <ben+marge-bot@smart-cactus.org> | 2022-10-25 18:10:19 -0400 |
commit | f5a486eb3233b0e577333f04d2087d0f6741af87 (patch) | |
tree | ecb7fd5de195ccfd58859d8644b95852ac8367c6 /compiler/GHC/Tc | |
parent | 1fd7f201a5afb9e8a26099da5ec86016bb487c92 (diff) | |
download | haskell-f5a486eb3233b0e577333f04d2087d0f6741af87.tar.gz |
Cleanup String/FastString conversions
Remove unused mkPtrString and isUnderscoreFS.
We no longer use mkPtrString since 1d03d8bef96.
Remove unnecessary conversions between FastString and String and back.
Diffstat (limited to 'compiler/GHC/Tc')
-rw-r--r-- | compiler/GHC/Tc/Errors/Ppr.hs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/compiler/GHC/Tc/Errors/Ppr.hs b/compiler/GHC/Tc/Errors/Ppr.hs index 84338000b9..bb4b0718cc 100644 --- a/compiler/GHC/Tc/Errors/Ppr.hs +++ b/compiler/GHC/Tc/Errors/Ppr.hs @@ -3781,13 +3781,13 @@ pprConversionFailReason = \case text "Illegal" <+> pprNameSpace ctxt_ns <+> text "name:" <+> quotes (text occ) SumAltArityExceeded alt arity -> - text "Sum alternative" <+> text (show alt) - <+> text "exceeds its arity," <+> text (show arity) + text "Sum alternative" <+> int alt + <+> text "exceeds its arity," <+> int arity IllegalSumAlt alt -> - vcat [ text "Illegal sum alternative:" <+> text (show alt) + vcat [ text "Illegal sum alternative:" <+> int alt , nest 2 $ text "Sum alternatives must start from 1" ] IllegalSumArity arity -> - vcat [ text "Illegal sum arity:" <+> text (show arity) + vcat [ text "Illegal sum arity:" <+> int arity , nest 2 $ text "Sums must have an arity of at least 2" ] MalformedType typeOrKind ty -> text "Malformed " <> text ty_str <+> text (show ty) |