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
6a7e59e3
Commit
6a7e59e3
authored
Aug 30, 2005
by
simonpj
Browse files
[project @ 2005-08-30 12:08:13 by simonpj]
Two type-formation tests (cf Sourceforge 1276246)
parent
b52f3a72
Changes
4
Hide whitespace changes
Inline
Side-by-side
testsuite/tests/ghc-regress/typecheck/should_fail/tcfail146.hs
0 → 100644
View file @
6a7e59e3
module
Foo1
where
-- Variant: class used as data
class
SClass
a
where
sFun
::
a
->
SData
a
data
SData
a
=
SCon
(
SClass
a
)
testsuite/tests/ghc-regress/typecheck/should_fail/tcfail146.stderr
0 → 100644
View file @
6a7e59e3
tcfail146.hs:7:15:
Class `SClass' used as a type
In the data type declaration for `SData'
testsuite/tests/ghc-regress/typecheck/should_fail/tcfail147.hs
0 → 100644
View file @
6a7e59e3
module
Foo1
where
-- Variant: ill-kinded.
class
XClass
a
where
xFun
::
a
->
XData
data
XData
=
XCon
XClass
testsuite/tests/ghc-regress/typecheck/should_fail/tcfail147.stderr
0 → 100644
View file @
6a7e59e3
tcfail147.hs:7:18:
`XClass' is not applied to enough type arguments
Expected kind `?', but `XClass' has kind `k -> *'
In the data type declaration for `XData'
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