Skip to content
GitLab
Menu
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
323c2927
Commit
323c2927
authored
Oct 29, 2010
by
Ian Lynagh
Browse files
Add a test for
#2846
parent
fc898b0c
Changes
3
Hide whitespace changes
Inline
Side-by-side
testsuite/tests/ghc-regress/typecheck/should_fail/T2846b.hs
0 → 100644
View file @
323c2927
{-# LANGUAGE ImpredicativeTypes, FlexibleContexts #-}
module
T2846
where
f
::
String
f
=
show
([
1
,
2
,
3
]
::
[
Num
a
=>
a
])
testsuite/tests/ghc-regress/typecheck/should_fail/T2846b.stderr
0 → 100644
View file @
323c2927
T2846b.hs:5:5:
No instance for (Show (Num a => a))
arising from a use of `show'
Possible fix: add an instance declaration for (Show (Num a => a))
In the expression: show ([1, 2, 3] :: [Num a => a])
In an equation for `f': f = show ([1, 2, 3] :: [Num a => a])
testsuite/tests/ghc-regress/typecheck/should_fail/all.T
View file @
323c2927
...
...
@@ -227,3 +227,4 @@ test('IPFail', normal, compile_fail, [''])
test
('
T3468
',
extra_clean
(['
T3468.hi-boot
']),
multimod_compile_fail
,
['
T3468
',
'
-v0
'])
test
('
T2846b
',
normal
,
compile_fail
,
[''])
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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