Skip to content

Commit 230a4a4

Browse files
committed
[ upstream ] Adapt to the changes in idris-lang/Idris2#3415
1 parent e2c4c53 commit 230a4a4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Language/LSP/CodeAction/Utils.idr

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,8 @@ printClause l i (WithClause _ lhsraw rig wvraw prf flags csraw) = do
9494
pure (relit l ((pack (replicate i ' ')
9595
++ show lhs
9696
++ " with \{showCount rig}(" ++ show wval ++ ")"
97-
++ maybe "" (\ nm => " proof " ++ show nm) prf
97+
-- TODO: remove `the` after fix idris-lang/Idris2#3418
98+
++ maybe "" (the (_ -> _) $ \(rg, nm) => " proof " ++ showCount rg ++ show nm) prf
9899
++ "\n"))
99100
++ showSep "\n" cs)
100101
printClause l i (ImpossibleClause _ lhsraw) = do

0 commit comments

Comments
 (0)