Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Alex D
GHC
Commits
415fe635
Commit
415fe635
authored
Jul 15, 2008
by
chak@cse.unsw.edu.au.
Browse files
Type families: T2157
parent
0eaa66e8
Changes
4
Hide whitespace changes
Inline
Side-by-side
testsuite/tests/ghc-regress/indexed-types/should_fail/Simple12.stderr
View file @
415fe635
Simple12.hs:8:0:
Illegal polymorphic
type in type instanc
e: forall a. [a]
Illegal polymorphic
or qualified typ
e: forall a. [a]
In the type synonym instance declaration for `C'
testsuite/tests/ghc-regress/indexed-types/should_fail/T2157.hs
0 → 100644
View file @
415fe635
{-# LANGUAGE TypeFamilies, LiberalTypeSynonyms #-}
module
T2157
where
type
S
a
b
=
a
type
family
F
a
::
*
->
*
type
instance
F
a
=
S
a
testsuite/tests/ghc-regress/indexed-types/should_fail/T2157.stderr
0 → 100644
View file @
415fe635
T2157.hs:7:0:
Type synonym `S' should have 2 arguments, but has been given 1
In the type synonym instance declaration for `F'
testsuite/tests/ghc-regress/indexed-types/should_fail/all.T
View file @
415fe635
...
...
@@ -28,6 +28,7 @@ test('TyFamArity2', normal, compile_fail, [''])
test
('
TyFamUndec
',
normal
,
compile_fail
,
[''])
test
('
T2334
',
if_compiler_lt
('
ghc
',
'
6.9
',
expect_fail
),
compile_fail
,
[''])
test
('
T1900
',
if_compiler_lt
('
ghc
',
'
6.9
',
expect_fail
),
compile_fail
,
[''])
test
('
T2157
',
if_compiler_lt
('
ghc
',
'
6.9
',
expect_fail
),
compile_fail
,
[''])
test
('
GADTwrong1
',
if_compiler_lt
('
ghc
',
'
6.9
',
expect_fail
),
compile_fail
,
[''])
...
...
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