Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
GHC
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Iterations
Merge Requests
0
Merge Requests
0
Requirements
Requirements
List
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Package Registry
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issue
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Alex D
GHC
Commits
b8260af7
Commit
b8260af7
authored
Aug 10, 2010
by
Ian Lynagh
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add more parse error tests for #3811
parent
96a5e89f
Changes
11
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
54 additions
and
0 deletions
+54
-0
testsuite/tests/ghc-regress/parser/should_fail/T3811c.hs
testsuite/tests/ghc-regress/parser/should_fail/T3811c.hs
+7
-0
testsuite/tests/ghc-regress/parser/should_fail/T3811c.stderr
testsuite/tests/ghc-regress/parser/should_fail/T3811c.stderr
+2
-0
testsuite/tests/ghc-regress/parser/should_fail/T3811d.hs
testsuite/tests/ghc-regress/parser/should_fail/T3811d.hs
+7
-0
testsuite/tests/ghc-regress/parser/should_fail/T3811d.stderr
testsuite/tests/ghc-regress/parser/should_fail/T3811d.stderr
+5
-0
testsuite/tests/ghc-regress/parser/should_fail/T3811e.hs
testsuite/tests/ghc-regress/parser/should_fail/T3811e.hs
+6
-0
testsuite/tests/ghc-regress/parser/should_fail/T3811e.stderr
testsuite/tests/ghc-regress/parser/should_fail/T3811e.stderr
+5
-0
testsuite/tests/ghc-regress/parser/should_fail/T3811f.hs
testsuite/tests/ghc-regress/parser/should_fail/T3811f.hs
+4
-0
testsuite/tests/ghc-regress/parser/should_fail/T3811f.stderr
testsuite/tests/ghc-regress/parser/should_fail/T3811f.stderr
+2
-0
testsuite/tests/ghc-regress/parser/should_fail/T3811g.hs
testsuite/tests/ghc-regress/parser/should_fail/T3811g.hs
+7
-0
testsuite/tests/ghc-regress/parser/should_fail/T3811g.stderr
testsuite/tests/ghc-regress/parser/should_fail/T3811g.stderr
+4
-0
testsuite/tests/ghc-regress/parser/should_fail/all.T
testsuite/tests/ghc-regress/parser/should_fail/all.T
+5
-0
No files found.
testsuite/tests/ghc-regress/parser/should_fail/T3811c.hs
0 → 100644
View file @
b8260af7
module
T3811c
where
data
D
=
D
instance
!
Show
D
testsuite/tests/ghc-regress/parser/should_fail/T3811c.stderr
0 → 100644
View file @
b8260af7
T3811c.hs:6:10: Malformed instance header: !Show D
testsuite/tests/ghc-regress/parser/should_fail/T3811d.hs
0 → 100644
View file @
b8260af7
module
T3811d
where
data
D
a
=
D
a
class
C
b
(
D
Char
)
b
testsuite/tests/ghc-regress/parser/should_fail/T3811d.stderr
0 → 100644
View file @
b8260af7
T3811d.hs:6:11:
Type found: D Char
where type variable expected, in: b (D Char) b
testsuite/tests/ghc-regress/parser/should_fail/T3811e.hs
0 → 100644
View file @
b8260af7
{-# LANGUAGE NoDatatypeContexts #-}
module
T3811e
where
data
(
Show
a
,
Read
a
)
=>
D
a
=
D
a
testsuite/tests/ghc-regress/parser/should_fail/T3811e.stderr
0 → 100644
View file @
b8260af7
T3811e.hs:6:6:
Illegal datatype context (use -XDatatypeContexts): (Show a,
Read a) =>
testsuite/tests/ghc-regress/parser/should_fail/T3811f.hs
0 → 100644
View file @
b8260af7
module
T3811f
where
class
!
Foo
a
testsuite/tests/ghc-regress/parser/should_fail/T3811f.stderr
0 → 100644
View file @
b8260af7
T3811f.hs:4:7: Malformed head of type or class declaration: !Foo a
testsuite/tests/ghc-regress/parser/should_fail/T3811g.hs
0 → 100644
View file @
b8260af7
module
T3811g
where
f
::
IO
()
f
=
do
_
<-
return
()
_
<-
return
()
testsuite/tests/ghc-regress/parser/should_fail/T3811g.stderr
0 → 100644
View file @
b8260af7
T3811g.hs:6:8:
The last statement in a 'do' construct must be an expression:
_ <- return ()
testsuite/tests/ghc-regress/parser/should_fail/all.T
View file @
b8260af7
...
...
@@ -65,4 +65,9 @@ test('T1344b', normal, compile_fail, [''])
test
('
T1344c
',
normal
,
compile_fail
,
[''])
test
('
T3811
',
normal
,
compile_fail
,
[''])
test
('
T3811b
',
normal
,
compile_fail
,
[''])
test
('
T3811c
',
normal
,
compile_fail
,
[''])
test
('
T3811d
',
normal
,
compile_fail
,
[''])
test
('
T3811e
',
normal
,
compile_fail
,
[''])
test
('
T3811f
',
normal
,
compile_fail
,
[''])
test
('
T3811g
',
normal
,
compile_fail
,
[''])
test
('
NoDoAndIfThenElse
',
normal
,
compile_fail
,
[''])
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