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
4,332
Issues
4,332
List
Boards
Labels
Service Desk
Milestones
Iterations
Merge Requests
363
Merge Requests
363
Requirements
Requirements
List
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Operations
Operations
Incidents
Environments
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
Glasgow Haskell Compiler
GHC
Commits
1f8c1c30
Commit
1f8c1c30
authored
Oct 03, 2012
by
Simon Peyton Jones
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Test Trac
#7276
parent
37c33c55
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
0 deletions
+16
-0
testsuite/tests/th/T7276.hs
testsuite/tests/th/T7276.hs
+6
-0
testsuite/tests/th/T7276.stderr
testsuite/tests/th/T7276.stderr
+9
-0
testsuite/tests/th/all.T
testsuite/tests/th/all.T
+1
-0
No files found.
testsuite/tests/th/T7276.hs
0 → 100644
View file @
1f8c1c30
{-# OPTIONS_GHC -fdefer-type-errors #-}
{-# LANGUAGE TemplateHaskell #-}
module
T7276
where
x
=
$
(
[
d
|
y = 3
|]
)
testsuite/tests/th/T7276.stderr
0 → 100644
View file @
1f8c1c30
T7276.hs:6:8:
Couldn't match type `[Language.Haskell.TH.Syntax.Dec]'
with `Language.Haskell.TH.Syntax.Exp'
Expected type: Language.Haskell.TH.Lib.ExpQ
Actual type: Language.Haskell.TH.Lib.DecsQ
In the Template Haskell quotation [d| y = 3 |]
In the expression: [d| y = 3 |]
In the expression: $([d| y = 3 |])
testsuite/tests/th/all.T
View file @
1f8c1c30
...
...
@@ -252,3 +252,4 @@ test('T7064',
['
T7064.hs
',
'
-v0
'])
test
('
T7092
',
extra_clean
(['
T7092a.hi
','
T7092a.o
']),
multimod_compile
,
['
T7092
','
-v0
'])
test
('
T7276
',
normal
,
compile_fail
,
['
-v0
'])
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