Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Open sidebar
Glasgow Haskell Compiler
GHC
Commits
7457641d
Commit
7457641d
authored
Feb 06, 2003
by
simonpj
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[project @ 2003-02-06 09:30:14 by simonpj]
Add error-message test
parent
ce35c343
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
21 additions
and
0 deletions
+21
-0
testsuite/tests/ghc-regress/deriving/should_fail/all.T
testsuite/tests/ghc-regress/deriving/should_fail/all.T
+1
-0
testsuite/tests/ghc-regress/deriving/should_fail/drvfail008.hs
...uite/tests/ghc-regress/deriving/should_fail/drvfail008.hs
+14
-0
testsuite/tests/ghc-regress/deriving/should_fail/drvfail008.stderr
.../tests/ghc-regress/deriving/should_fail/drvfail008.stderr
+6
-0
No files found.
testsuite/tests/ghc-regress/deriving/should_fail/all.T
View file @
7457641d
...
...
@@ -6,3 +6,4 @@ test('drvfail004', normal, compile_fail, [''])
test
('
drvfail005
',
normal
,
compile_fail
,
[''])
test
('
drvfail006
',
normal
,
compile_fail
,
[''])
test
('
drvfail007
',
normal
,
compile_fail
,
[''])
test
('
drvfail008
',
normal
,
compile_fail
,
[''])
testsuite/tests/ghc-regress/deriving/should_fail/drvfail008.hs
0 → 100644
View file @
7457641d
-- Should fail without -fglasgow-exts
-- Succeeds with -fglasgow-exts
module
ShouldFail
where
import
Control.Monad.State
data
S
=
S
Int
newtype
M
a
=
M
(
StateT
S
IO
a
)
deriving
(
Monad
)
testsuite/tests/ghc-regress/deriving/should_fail/drvfail008.stderr
0 → 100644
View file @
7457641d
drvfail008.hs:10:
Can't make a derived instance of `Monad M'
(`Monad' is not a derivable class
Try -fglasgow-exts for GHC's newtype-deriving extension)
When deriving instances for type `M'
Write
Preview
Markdown
is supported
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