diff options
author | Krzysztof Gogolewski <krzysztof.gogolewski@tweag.io> | 2022-11-14 19:30:50 +0100 |
---|---|---|
committer | Krzysztof Gogolewski <krzysztof.gogolewski@tweag.io> | 2022-11-14 19:55:00 +0100 |
commit | d56816049e028b525e80e207cf87bb2e1aa194fc (patch) | |
tree | edcc1bb91949144bb4b85bd4d7c49869277c895d /compiler/GHC/Wasm/ControlFlow/FromCmm.hs | |
parent | 268a3ce952f6be00a1dd164dc4d7acb346045e90 (diff) | |
download | haskell-wip/misc-cleanup2.tar.gz |
Misc cleanupwip/misc-cleanup2
* Replace catMaybes . map f with mapMaybe f
* Use concatFS to concatenate multiple FastStrings
* Fix documentation of -exclude-module
* Cleanup getIgnoreCount in GHCi.UI
Diffstat (limited to 'compiler/GHC/Wasm/ControlFlow/FromCmm.hs')
-rw-r--r-- | compiler/GHC/Wasm/ControlFlow/FromCmm.hs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/compiler/GHC/Wasm/ControlFlow/FromCmm.hs b/compiler/GHC/Wasm/ControlFlow/FromCmm.hs index e003fff96a..8235b59ed6 100644 --- a/compiler/GHC/Wasm/ControlFlow/FromCmm.hs +++ b/compiler/GHC/Wasm/ControlFlow/FromCmm.hs @@ -29,7 +29,6 @@ import GHC.Utils.Misc import GHC.Utils.Panic import GHC.Utils.Outputable ( Outputable, text, (<+>), ppr , pprWithCommas - , showSDocUnsafe ) import GHC.Wasm.ControlFlow @@ -338,7 +337,7 @@ instance Outputable ContainingSyntax where findLabelIn :: HasDebugCallStack => Label -> LabelMap a -> a findLabelIn lbl = mapFindWithDefault failed lbl where failed = - panic $ "label " ++ showSDocUnsafe (ppr lbl) ++ " not found in control-flow graph" + pprPanic "label not found in control-flow graph" (ppr lbl) infixl 4 <$~> |