Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Glasgow Haskell Compiler
GHC
Commits
e1ffbb21
Commit
e1ffbb21
authored
Sep 19, 2005
by
simonpj
Browse files
[project @ 2005-09-19 09:34:47 by simonpj]
Another kind-error test
parent
9ae84316
Changes
3
Hide whitespace changes
Inline
Side-by-side
testsuite/tests/ghc-regress/typecheck/should_fail/all.T
View file @
e1ffbb21
...
...
@@ -135,3 +135,4 @@ test('tcfail147', normal, compile_fail, [''])
test
('
tcfail148
',
normal
,
compile_fail
,
[''])
test
('
tcfail149
',
normal
,
compile_fail
,
[''])
test
('
tcfail150
',
normal
,
compile_fail
,
[''])
test
('
tcfail151
',
normal
,
compile_fail
,
[''])
testsuite/tests/ghc-regress/typecheck/should_fail/tcfail151.hs
0 → 100644
View file @
e1ffbb21
module
ShouldFail
where
class
(
Show
a
,
Eq
a
,
Monad
m
)
=>
Name
m
a
where
hashName
::
a
->
Int
newName
::
m
a
data
Name
a
=>
Exp
a
-- The kind error should be reported here
-- GHC 6.4 reported an error with the class decl
testsuite/tests/ghc-regress/typecheck/should_fail/tcfail151.stderr
0 → 100644
View file @
e1ffbb21
tcfail151.hs:7:5:
`Name a' is not applied to enough type arguments
Expected kind `*', but `Name a' has kind `k -> *'
In the data type declaration for `Exp'
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment