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
ff65996a
Commit
ff65996a
authored
Jul 08, 2007
by
Ian Lynagh
Browse files
Add tests for -XMultiParamTypeClasses
parent
0686017f
Changes
6
Hide whitespace changes
Inline
Side-by-side
testsuite/tests/ghc-regress/parser/should_compile/all.T
View file @
ff65996a
...
...
@@ -58,3 +58,5 @@ test('read048', normal, compile, [''])
test
('
read049
',
normal
,
compile
,
[''])
test
('
read050
',
normal
,
compile
,
[''])
test
('
read051
',
normal
,
compile
,
[''])
test
('
read052
',
normal
,
compile
,
[''])
test
('
read053
',
normal
,
compile
,
[''])
testsuite/tests/ghc-regress/parser/should_compile/read052.hs
0 → 100644
View file @
ff65996a
{-# OPTIONS_GHC -XMultiParamTypeClasses #-}
module
Foo
where
class
Foo
a
b
testsuite/tests/ghc-regress/parser/should_compile/read053.hs
0 → 100644
View file @
ff65996a
{-# LANGUAGE MultiParamTypeClasses #-}
module
Foo
where
class
Foo
a
b
testsuite/tests/ghc-regress/parser/should_fail/all.T
View file @
ff65996a
...
...
@@ -43,3 +43,4 @@ test('read033', normal, compile_fail, [''])
test
('
read034
',
normal
,
compile_fail
,
[''])
test
('
read035
',
normal
,
compile_fail
,
[''])
test
('
read036
',
normal
,
compile_fail
,
[''])
test
('
read037
',
normal
,
compile_fail
,
[''])
testsuite/tests/ghc-regress/parser/should_fail/read037.hs
0 → 100644
View file @
ff65996a
module
Foo
where
class
Foo
a
b
testsuite/tests/ghc-regress/parser/should_fail/read037.stderr
0 → 100644
View file @
ff65996a
read037.hs:4:0:
Too many parameters for class `Foo'
(Use -XMultiParamTypeClasses to allow multi-parameter classes)
In the class declaration for `Foo'
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