From 8c715b02cbbb1875af78ffa8ae8adbf3b027f53d Mon Sep 17 00:00:00 2001 From: Curtis Chin Jen Sem Date: Sat, 14 Nov 2026 23:36:00 +0100 Subject: [PATCH] Fix fixity issue when catching exceptions when handling `.hie` files --- ghcide/src/Development/IDE/Core/Compile.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ghcide/src/Development/IDE/Core/Compile.hs b/ghcide/src/Development/IDE/Core/Compile.hs index 4ed988140e..fc99a52b02 100644 --- a/ghcide/src/Development/IDE/Core/Compile.hs +++ b/ghcide/src/Development/IDE/Core/Compile.hs @@ -1037,7 +1037,7 @@ writeHiFile se hscEnv tc = handleGenerationErrors :: DynFlags -> T.Text -> IO () -> IO [FileDiagnostic] handleGenerationErrors dflags source action = - action >> pure [] `catches` + (action >> pure []) `catches` [ Handler $ pure . diagFromGhcException source dflags , Handler $ \(exception :: SomeException) -> pure $ diagFromString