From 4183227aebbdaf5622ed59593f917ceeade8f232 Mon Sep 17 00:00:00 2001 From: poscat Date: Sat, 4 Jan 2025 22:22:05 +0800 Subject: [PATCH] ppHsc2hs: treat Right [] as not broken --- Cabal/src/Distribution/Simple/PreProcess.hs | 1 + 1 file changed, 1 insertion(+) diff --git a/Cabal/src/Distribution/Simple/PreProcess.hs b/Cabal/src/Distribution/Simple/PreProcess.hs index 9675d431b9c..290820119bb 100644 --- a/Cabal/src/Distribution/Simple/PreProcess.hs +++ b/Cabal/src/Distribution/Simple/PreProcess.hs @@ -645,6 +645,7 @@ ppHsc2hs bi lbi clbi = hacked_index (map fst (componentPackageDeps clbi)) of Left index' -> index' + Right [] -> hacked_index Right inf -> error ("ppHsc2hs: broken closure: " ++ show inf) isOSX = case buildOS of OSX -> True; _ -> False