-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
patch eval-plugin for missing Monad constraint
- Loading branch information
Showing
2 changed files
with
41 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
From 6df3a5841c51ebb92da0ebd58f0f107b11b3a90e Mon Sep 17 00:00:00 2001 | ||
From: Sander <hey@sandydoo.me> | ||
Date: Mon, 12 Jun 2023 06:15:45 +0000 | ||
Subject: [PATCH] Add missing Monad constraint in eval plugin | ||
|
||
--- | ||
plugins/hls-eval-plugin/src/Ide/Plugin/Eval/Parse/Comments.hs | 2 +- | ||
1 file changed, 1 insertion(+), 1 deletion(-) | ||
|
||
diff --git a/plugins/hls-eval-plugin/src/Ide/Plugin/Eval/Parse/Comments.hs b/plugins/hls-eval-plugin/src/Ide/Plugin/Eval/Parse/Comments.hs | ||
index f3479fa42c..5a4d3f71b5 100644 | ||
--- a/plugins/hls-eval-plugin/src/Ide/Plugin/Eval/Parse/Comments.hs | ||
+++ b/plugins/hls-eval-plugin/src/Ide/Plugin/Eval/Parse/Comments.hs | ||
@@ -496,7 +496,7 @@ consume style = | ||
Line -> (,) <$> takeRest <*> getPosition | ||
Block {} -> manyTill_ anySingle (getPosition <* eob) | ||
|
||
-getPosition :: (Ord v, TraversableStream s) => ParsecT v s m Position | ||
+getPosition :: (Monad m, Ord v, TraversableStream s) => ParsecT v s m Position | ||
getPosition = sourcePosToPosition <$> getSourcePos | ||
|
||
-- | Parses example test line. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters