-
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
15 changed files
with
152 additions
and
19 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
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,4 @@ | ||
#!/bin/bash | ||
|
||
# ghc -fno-diagnostics-show-caret $1 &> ${1%.*}.ghc-$(ghc --numeric-version).errors | ||
ghc -fno-diagnostics-show-caret $1 &> ${1%.*}.ghc-$(ghc --numeric-version).errors |
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,21 @@ | ||
Ok, 53 modules reloaded. | ||
RELOADING SUCCEEDED | ||
|
||
Command | ||
kebabCase | ||
converts a list of words to kebab-case [✘] | ||
|
||
Failures: | ||
|
||
test/CommandSpec.hs:31:39: | ||
1) Command.kebabCase converts a list of words to kebab-case | ||
expected: "oo-bar-baz" | ||
but got: "foo-bar-baz" | ||
|
||
To rerun use: --match "/Command/kebabCase/converts a list of words to kebab-case/" --seed 1821211779 | ||
|
||
Randomized with seed 1821211779 | ||
|
||
Finished in 0.0002 seconds | ||
1 example, 1 failure | ||
Summary {summaryExamples = 1, summaryFailures = 1} |
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
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,33 @@ | ||
#!/bin/env -S vim -u NONE -S | ||
|
||
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 | ||
|
||
try | ||
source vim/tests.vim | ||
catch | ||
FAILURE substitute(v:throwpoint, "^command line..script ", "", "") | ||
echo "\n" | ||
FAILURE v:exception | ||
cquit | ||
endtry | ||
|
||
echo "\n" | ||
|
||
if !empty(v:errors) | ||
FAILURE "FAILURES:\n" | ||
for error in v:errors | ||
echo "\n" | ||
FAILURE substitute(substitute(substitute(error, "^command line..script ", "", ""), " Expected ", "\n\nexpected: ", ""), " but got", "\n but got:", "") | ||
endfor | ||
cquit | ||
else | ||
SUCCESS "SUCCESS" | ||
quit | ||
endif |
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,10 @@ | ||
set makeprg=seito | ||
|
||
" GHC | ||
set errorformat=%A%f:%l:%c:\ %t%*[^:]:\ [GHC-%n] | ||
set errorformat^=%+C\ %.%# | ||
set errorformat^=%Z | ||
set errorformat^=%-G\ \ \ \ Suggested\ fix:%.%# | ||
|
||
" Hspec | ||
set errorformat^=\ \ %f:%l:%c:\ .%# |
11 changes: 11 additions & 0 deletions
11
vim/test/assets/type-signature-lacks-binding.ghc-9.10.1.errors
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,11 @@ | ||
[1 of 2] Compiling Main ( vim/test/assets/type-signature-lacks-binding.hs, vim/test/assets/type-signature-lacks-binding.o ) | ||
vim/test/assets/type-signature-lacks-binding.hs:1:1: error: [GHC-44432] | ||
The type signature for ‘foo’ lacks an accompanying binding | ||
Suggested fix: | ||
Perhaps use ‘foo_’ (Defined at vim/test/assets/type-signature-lacks-binding.hs:2:1) | ||
|
||
vim/test/assets/type-signature-lacks-binding.hs:4:1: error: [GHC-44432] | ||
The type signature for ‘bar’ lacks an accompanying binding | ||
Suggested fix: | ||
Perhaps use ‘bar_’ (Defined at vim/test/assets/type-signature-lacks-binding.hs:5:1) | ||
|
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 @@ | ||
foo :: Int | ||
foo_ = 23 | ||
|
||
bar :: Int | ||
bar_ = 23 |
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,25 @@ | ||
source vim/sensei.vim | ||
|
||
cgetfile vim/test/assets/type-signature-lacks-binding.ghc-9.10.1.errors | ||
|
||
let errors = filter(getqflist(), 'v:val.valid') | ||
|
||
let err1 = errors[0] | ||
call assert_equal("vim/test/assets/type-signature-lacks-binding.hs", bufname(err1.bufnr)) | ||
call assert_equal(1, 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) | ||
call assert_equal("\n The type signature for ‘foo’ lacks an accompanying binding", err1.text) | ||
|
||
let err2 = errors[1] | ||
call assert_equal("vim/test/assets/type-signature-lacks-binding.hs", bufname(err2.bufnr)) | ||
call assert_equal(4, 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) | ||
call assert_equal("\n The type signature for ‘bar’ lacks an accompanying binding", err2.text) |
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,6 @@ | ||
#!/bin/bash | ||
while true; do | ||
echo | ||
inotifywait -e modify -e attrib -e close_write -e move -e create -e delete -r vim/ | ||
./vim/run_tests.vim | ||
done |