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
9ae96c09
Commit
9ae96c09
authored
Jun 29, 2007
by
chak@cse.unsw.edu.au.
Browse files
Type families: test for tau typeness of rhs of type instances
parent
71900040
Changes
3
Hide whitespace changes
Inline
Side-by-side
testsuite/tests/ghc-regress/indexed-types/should_fail/Simple12.hs
0 → 100644
View file @
9ae96c09
{-# OPTIONS -ftype-families -fglasgow-exts #-}
module
ShouldFail
where
type
family
C
a
::
*
type
instance
C
Int
=
forall
a
.
[
a
]
testsuite/tests/ghc-regress/indexed-types/should_fail/Simple12.stderr
0 → 100644
View file @
9ae96c09
Simple12.hs:6:0:
Illegal polymorphic type in type instance: forall a. [a]
testsuite/tests/ghc-regress/indexed-types/should_fail/all.T
View file @
9ae96c09
...
...
@@ -18,6 +18,7 @@ test('Simple11a', normal, compile_fail, [''])
test
('
Simple11b
',
normal
,
compile_fail
,
[''])
test
('
Simple11c
',
normal
,
compile_fail
,
[''])
test
('
Simple11d
',
normal
,
compile_fail
,
[''])
test
('
Over
',
normal
,
multimod_
compile_fail
,
['
OverD
',
'
-no-hs-main -no-link
'])
test
('
Simple12
',
normal
,
compile_fail
,
[''])
test
('
Over
',
normal
,
multimod_compile_fail
,
['
OverD
',
'
-no-hs-main -no-link
'])
clean
(['
OverA.hi
',
'
OverA.o
',
'
OverB.hi
',
'
OverB.o
',
'
OverC.hi
',
'
OverC.o
'])
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