Skip to content

Commit

Permalink
Address feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
brandonchinn178 committed Jun 6, 2024
1 parent 6927f67 commit 9c965bb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Ormolu/Printer/Meat/Declaration/Value.hs
Original file line number Diff line number Diff line change
Expand Up @@ -871,6 +871,7 @@ p_listComp s es = sitcc (vlayout singleLine multiLine)
body = located es p_body
p_body xs = do
let (stmts, yield) =
-- TODO: use unsnoc when require GHC 9.8+
case xs of
[] -> error $ "list comprehension unexpectedly had no expressions"
_ -> (init xs, last xs)
Expand Down

0 comments on commit 9c965bb

Please sign in to comment.