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,324
Issues
4,324
List
Boards
Labels
Service Desk
Milestones
Iterations
Merge Requests
377
Merge Requests
377
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
cfdcf556
Commit
cfdcf556
authored
Aug 28, 2012
by
Simon Peyton Jones
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Test Trac
#7092
parent
0faa6024
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
24 additions
and
0 deletions
+24
-0
testsuite/tests/th/T7092.hs
testsuite/tests/th/T7092.hs
+10
-0
testsuite/tests/th/T7092a.hs
testsuite/tests/th/T7092a.hs
+12
-0
testsuite/tests/th/all.T
testsuite/tests/th/all.T
+2
-0
No files found.
testsuite/tests/th/T7092.hs
0 → 100644
View file @
cfdcf556
{-# LANGUAGE TemplateHaskell #-}
{-# OPTIONS_GHC -fwarn-name-shadowing #-}
-- Should not produce a name-shadowing warning (GHC 7.4 did)
module
T7092
where
import
T7092a
blah
=
$
(
code
)
testsuite/tests/th/T7092a.hs
0 → 100644
View file @
cfdcf556
{-# LANGUAGE TemplateHaskell #-}
module
T7092a
where
import
Language.Haskell.TH
code
::
Q
Exp
code
=
do
n1
<-
newName
"foo"
n2
<-
newName
"foo"
letE
[
valD
(
varP
n1
)
(
normalB
[
|
(
1
::
Int
)
|
])
[]
]
$
letE
[
valD
(
varP
n2
)
(
normalB
[
|
(
2
::
Int
)
|
])
[]
]
$
appE
(
appE
[
|
((
+
)
::
Int
->
Int
->
Int
)
|
]
(
varE
n1
))
(
varE
n2
)
testsuite/tests/th/all.T
View file @
cfdcf556
...
...
@@ -250,3 +250,5 @@ test('T7064',
extra_clean
(['
T7064a.hi
',
'
T7064a.o
']),
multimod_compile_and_run
,
['
T7064.hs
',
'
-v0
'])
test
('
T7092
',
extra_clean
(['
T7092a.hi
','
T7092a.o
']),
multimod_compile
,
['
T7092
','
-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