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
Alex D
GHC
Commits
b7aa8a83
Commit
b7aa8a83
authored
Sep 01, 2011
by
Simon Peyton Jones
Browse files
Update error messages; and SimpleFail10 now passes
parent
6d43f0f7
Changes
6
Hide whitespace changes
Inline
Side-by-side
testsuite/tests/indexed-types/should_fail/SimpleFail10.hs
View file @
b7aa8a83
...
...
@@ -8,6 +8,6 @@ class C8 a where
instance
C8
Int
where
data
S8
Int
a
=
S8Int
a
--
must fail: e
xtra argument
s must be variables
--
E
xtra argument
is not a variable; this is fine
instance
C8
Bool
where
data
S8
Bool
Char
=
S8Bool
testsuite/tests/indexed-types/should_fail/SimpleFail10.stderr
View file @
b7aa8a83
SimpleFail10.hs:13:3:
Arguments that do not correspond to a class parameter must be variables
Instead of a variable, found Char
In the data type instance declaration for `S8'
In the instance declaration for `C8 Bool'
testsuite/tests/indexed-types/should_fail/SimpleFail2a.hs
View file @
b7aa8a83
...
...
@@ -8,7 +8,7 @@ class C a where
type
St
a
::
*
instance
C
Int
where
data
Sd
a
::
*
--
must fail: parse error
data
Sd
a
::
*
--
Looks like a nullary data instance decl
data
Sd
Int
=
SdC
Char
newtype
Sn
Int
=
SnC
Char
type
St
Int
=
Char
testsuite/tests/indexed-types/should_fail/SimpleFail2a.stderr
View file @
b7aa8a83
SimpleFail2a.hs:11:11:
Conflicting definitions for `Sd'
Bound at: SimpleFail2a.hs:11:11-12
SimpleFail2a.hs:12:11-12
SimpleFail2a.hs:11:3:
Type indexes must match class instance head
Found `a' but expected `Int'
In the data type instance declaration for `Sd'
In the instance declaration for `C Int'
testsuite/tests/indexed-types/should_fail/SimpleFail2b.stderr
View file @
b7aa8a83
SimpleFail2b.hs:
9
:11:
Conflicting
definitions for `Sd'
Boun
d at
:
SimpleFail2b.hs:
9
:11-12
SimpleFail2b.hs:
10
:11-12
SimpleFail2b.hs:
10
:11:
Conflicting
family instance declarations:
data Sd Int -- Define
d at SimpleFail2b.hs:
10
:11-12
data Sd Int -- Defined at
SimpleFail2b.hs:
9
:11-12
testsuite/tests/indexed-types/should_fail/all.T
View file @
b7aa8a83
...
...
@@ -13,7 +13,7 @@ test('SimpleFail6', normal, compile_fail, [''])
test
('
SimpleFail7
',
normal
,
compile_fail
,
[''])
test
('
SimpleFail8
',
normal
,
compile_fail
,
[''])
test
('
SimpleFail9
',
normal
,
compile_fail
,
[''])
test
('
SimpleFail10
',
normal
,
compile
_fail
,
[''])
test
('
SimpleFail10
',
normal
,
compile
,
[''])
test
('
SimpleFail11a
',
normal
,
compile_fail
,
[''])
test
('
SimpleFail11b
',
normal
,
compile_fail
,
[''])
test
('
SimpleFail11c
',
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