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
65a102be
Commit
65a102be
authored
May 02, 2005
by
simonpj
Browse files
[project @ 2005-05-02 12:00:34 by simonpj]
Add newtype stupid-theta test
parent
4fae4453
Changes
3
Hide whitespace changes
Inline
Side-by-side
testsuite/tests/ghc-regress/typecheck/should_fail/all.T
View file @
65a102be
...
...
@@ -122,3 +122,4 @@ test('tcfail133', only_compiler_types(['ghc']), compile_fail, [''])
test
('
tcfail134
',
normal
,
compile_fail
,
[''])
test
('
tcfail135
',
normal
,
compile_fail
,
[''])
test
('
tcfail136
',
normal
,
compile_fail
,
[''])
test
('
tcfail137
',
normal
,
compile_fail
,
[''])
testsuite/tests/ghc-regress/typecheck/should_fail/tcfail137.hs
0 → 100644
View file @
65a102be
-- Test the stupid context on newtypes
-- (GHC 6.4 dropped it on the floor by mistake)
module
ShouldFail
where
newtype
Floating
a
=>
Test
a
=
Test
[
a
]
x
=
Test
[
False
,
True
]
testsuite/tests/ghc-regress/typecheck/should_fail/tcfail137.stderr
0 → 100644
View file @
65a102be
tcfail137.hs:8:4:
No instance for (Floating Bool)
arising from use of `Test' at tcfail137.hs:8:4-7
Probable fix: add an instance declaration for (Floating Bool)
In the definition of `x': x = Test [False, True]
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