-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
107 additions
and
15 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
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
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,16 @@ | ||
|
||
[46 of 54] Compiling Command | ||
src/Command.hs:67:1: error: [GHC-44432] | ||
The type signature for ‘oo’ lacks an accompanying binding | ||
Suggested fix: Perhaps use ‘foo’ (Defined at src/Command.hs:68:1) | ||
|
||
src/Command.hs:70:1: error: [GHC-44432] | ||
The type signature for ‘command_’ lacks an accompanying binding | ||
Suggested fix: | ||
Perhaps use one of these: | ||
‘ommand_’ (Defined at src/Command.hs:71:1), | ||
‘commands’ (Defined at src/Command.hs:147:1) | ||
|
||
Failed, 47 modules reloaded. | ||
|
||
driver/seito.hs:15:22: error: [GHC-58481] parse error on input ‘->’ |
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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,5 @@ | ||
set makeprg=seito | ||
set errorformat=%A%f:%l:%c:\ %t%*[^:]:\ [GHC-%n] | ||
set errorformat^=%+C\ %.%# | ||
set errorformat^=%Z | ||
set errorformat^=%-G\ \ \ \ Suggested\ fix:%.%# |
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,59 @@ | ||
#!/bin/env -S vim -u NONE -S | ||
" vim9script | ||
|
||
set t_ti= | ||
set t_te= | ||
|
||
highlight red ctermfg=red | ||
highlight green ctermfg=green | ||
|
||
command! -nargs=* FAILURE echohl red | echo <args> | echohl none | ||
command! -nargs=* SUCCESS echohl green | echo <args> | echohl none | ||
|
||
source vim/sensei.vim | ||
|
||
|
||
cgetfile ghc-9.10.1 | ||
|
||
let errors = filter(getqflist(), 'v:val.valid') | ||
|
||
for error in errors | ||
let file = bufname(error.bufnr) | ||
if file != '' | ||
SUCCESS file | ||
else | ||
FAILURE "none" | ||
endif | ||
echo error | ||
endfor | ||
|
||
let err1 = errors[0] | ||
call assert_equal("src/Command.hs", bufname(err1.bufnr)) | ||
call assert_equal(67, err1.lnum) | ||
call assert_equal(1, err1.col) | ||
call assert_equal(0, err1.end_lnum) | ||
call assert_equal(0, err1.end_col) | ||
call assert_equal('e', err1.type) | ||
call assert_equal(44432, err1.nr) | ||
|
||
let err2 = errors[1] | ||
call assert_equal("src/Command.hs", bufname(err2.bufnr)) | ||
call assert_equal(70, err2.lnum) | ||
call assert_equal(1, err2.col) | ||
call assert_equal(0, err2.end_lnum) | ||
call assert_equal(0, err2.end_col) | ||
call assert_equal('e', err2.type) | ||
call assert_equal(44432, err2.nr) | ||
|
||
echo "\n" | ||
|
||
if !empty(v:errors) | ||
FAILURE "FAILURES:\n\n" | ||
for error in v:errors | ||
FAILURE substitute(error, "^command line..script ", "", "") | ||
endfor | ||
cquit | ||
else | ||
SUCCESS "SUCCESS" | ||
quit | ||
endif |