File tree Expand file tree Collapse file tree 1 file changed +6
-7
lines changed Expand file tree Collapse file tree 1 file changed +6
-7
lines changed Original file line number Diff line number Diff line change @@ -326,13 +326,12 @@ correspondingly-named overlay properties of OVL."
326
326
(cl-first (sort (cl-copy-list ovls) 'overlay-start> ))))
327
327
328
328
(defun haskell-error-overlay-briefly (ovl )
329
- (let ((text (overlay-get ovl 'haskell-msg ))
330
- (type (overlay-get ovl 'haskell-msg-type )))
331
- (cond ((not (eq type 'warning ))
332
- text)
333
- ((string-prefix-p " Warning:\n " text)
334
- (cl-subseq text 13 ))
335
- (t (error " Invariant failed: a warning message from GHC has unexpected form: %s . " text)))))
329
+ (with-overlay-properties (haskell-msg haskell-msg-type) ovl
330
+ (cond ((not (eq haskell-msg-type 'warning ))
331
+ haskell-msg)
332
+ ((string-prefix-p " Warning:\n " haskell-msg)
333
+ (cl-subseq haskell-msg 13 ))
334
+ (t (error " Invariant failed: a warning message from GHC has unexpected form: %s . " haskell-msg)))))
336
335
337
336
(defun haskell-goto-error-overlay (ovl )
338
337
(cond (ovl
You can’t perform that action at this time.
0 commit comments