Skip to content

Commit

Permalink
ppHsc2hs: treat Right [] as not broken
Browse files Browse the repository at this point in the history
  • Loading branch information
poscat0x04 committed Jan 4, 2025
1 parent 1082c0b commit 4183227
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Cabal/src/Distribution/Simple/PreProcess.hs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 4183227

Please sign in to comment.