All patches and comments are welcome. Please squash your changes to logical
commits before using git-format-patch and git-send-email to
patches@git.madduck.net.
If you'd read over the Git project's submission guidelines and adhered to them,
I'd be especially grateful.
4 Execute(The ghc handler should handle hdevtools output):
5 call ale#test#SetFilename('foo.hs')
13 \ 'text': "• Couldn't match type ‘a -> T.Text’ with ‘T.Text’ Expected type: [T.Text]",
15 \ "• Couldn't match type ‘a -> T.Text’ with ‘T.Text’",
16 \ ' Expected type: [T.Text]',
20 \ ale#handlers#haskell#HandleGHCFormat(bufnr(''), [
21 \ 'foo.hs:147:62: warning:',
22 \ "• Couldn't match type ‘a -> T.Text’ with ‘T.Text’",
23 \ ' Expected type: [T.Text]',
26 Execute(The ghc handler should handle ghc 8 output):
27 call ale#test#SetFilename('src/Appoint/Lib.hs')
35 \ 'text': 'Failed to load interface for ‘GitHub.Data’ Use -v to see a list of the files searched for.',
37 \ ' Failed to load interface for ‘GitHub.Data’',
38 \ ' Use -v to see a list of the files searched for.',
45 \ 'text': 'Failed to load interface for ‘GitHub.Endpoints.PullRequests’ Use -v to see a list of the files searched for.',
47 \ ' Failed to load interface for ‘GitHub.Endpoints.PullRequests’',
48 \ ' Use -v to see a list of the files searched for.',
52 \ ale#handlers#haskell#HandleGHCFormat(bufnr(''), [
54 \ ale#path#Simplify('src/Appoint/Lib.hs') . ':6:1: error:',
55 \ ' Failed to load interface for ‘GitHub.Data’',
56 \ ' Use -v to see a list of the files searched for.',
58 \ ale#path#Simplify('src/Appoint/Lib.hs') . ':7:1: warning:',
59 \ ' Failed to load interface for ‘GitHub.Endpoints.PullRequests’',
60 \ ' Use -v to see a list of the files searched for.',
63 Execute(The ghc handler should handle ghc 7 output):
64 call ale#test#SetFilename('src/Main.hs')
72 \ 'text': 'parse error (possibly incorrect indentation or mismatched brackets)',
74 \ ' parse error (possibly incorrect indentation or mismatched brackets)',
81 \ 'text': 'Top-level binding with no type signature: myLayout :: Choose Tall (Choose (Mirror Tall) Full) a',
83 \ ' Top-level binding with no type signature:',
84 \ ' myLayout :: Choose Tall (Choose (Mirror Tall) Full) a',
91 \ 'text': 'Some other error',
93 \ ' Some other error',
97 \ ale#handlers#haskell#HandleGHCFormat(bufnr(''), [
98 \ ale#path#Simplify('src/Main.hs') . ':168:1:',
99 \ ' parse error (possibly incorrect indentation or mismatched brackets)',
100 \ ale#path#Simplify('src/Main.hs') . ':84:1:Warning:',
101 \ ' Top-level binding with no type signature:',
102 \ ' myLayout :: Choose Tall (Choose (Mirror Tall) Full) a',
103 \ ale#path#Simplify('src/Main.hs') . ':94:5:Error:',
104 \ ' Some other error',
107 Execute(The ghc handler should handle stack 1.5.1 output):
108 call ale#test#SetFilename('src/Main.hs')
116 \ 'text': '• Expecting one fewer arguments to ‘Exp’ Expected kind ‘k0 -> *’, but ‘Exp’ has kind ‘*’ • In the type ‘Exp a’ | 160 | pattern F :: Exp a | ^^^^^',
118 \ ' • Expecting one fewer arguments to ‘Exp’',
119 \ ' Expected kind ‘k0 -> *’, but ‘Exp’ has kind ‘*’',
120 \ ' • In the type ‘Exp a’',
122 \ ' 160 | pattern F :: Exp a',
127 \ ale#handlers#haskell#HandleGHCFormat(bufnr(''), [
128 \ ' ' . ale#path#Simplify('src/Main.hs') . ':160:14: error:',
129 \ ' • Expecting one fewer arguments to ‘Exp’',
130 \ ' Expected kind ‘k0 -> *’, but ‘Exp’ has kind ‘*’',
131 \ ' • In the type ‘Exp a’',
133 \ ' 160 | pattern F :: Exp a',
137 Execute(The ghc handler should handle ghc panic):
139 \ '[15 of 15] Compiling SizedTypes.List',
140 \ 'ghc: panic! (the ''impossible'' happened)',
141 \ ' (GHC version 8.10.3:',
142 \ ' src/SizedTypes/List.hs:(46,19)-(50,0) Specified type does not refine Haskell type for `SizedTypes.List.out` (Plugged Init types new)',
143 \ ' The Liquid type',
145 \ ' GHC.Types.Int -> (SizedTypes.List.List a) -> (_, (SizedTypes.List.List a))',
147 \ ' is inconsistent with the Haskell type',
150 \ 'p -> SizedTypes.List.List a -> (a, SizedTypes.List.List a)',
152 \ ' defined at src/SizedTypes/List.hs:52:1-3',
154 \ ' Specifically, the Liquid component',
156 \ ' {VV##0 : GHC.Types.Int | VV##0 >= 0}',
158 \ ' is inconsistent with the Haskell component',
163 \ ' HINT: Use the hole ''_'' instead of the mismatched component (in the Liquid specification)',
165 \ 'Please report this as a GHC bug: https://www.haskell.org/ghc/reportabug',
175 \ 'text': 'ghc panic!',
176 \ 'detail': join(g:detail[1:-3], "\n"),
179 \ ale#handlers#haskell#HandleGHCFormat(bufnr(''), g:detail)