Skip to content
GitLab
Menu
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
9734a93f
Commit
9734a93f
authored
Mar 28, 2012
by
Simon Peyton Jones
Browse files
Test Trac
#5971
parent
ada17f27
Changes
3
Hide whitespace changes
Inline
Side-by-side
testsuite/tests/th/T5971.hs
0 → 100644
View file @
9734a93f
{-# LANGUAGE TemplateHaskell #-}
module
T5971
where
import
Language.Haskell.TH
_
=
$
(
newName
"x"
>>=
varE
)
testsuite/tests/th/T5971.stderr
0 → 100644
View file @
9734a93f
T5971.hs:6:7:
The exact Name `x' is not in scope
Probable cause: you used a unique name (NameU) in Template Haskell but did not bind it
In the result of the splice:
$(newName "x" >>= varE)
To see what the splice expanded to, use -ddump-splices
In the expression: $(newName "x" >>= varE)
In a pattern binding: _ = $(newName "x" >>= varE)
testsuite/tests/th/all.T
View file @
9734a93f
...
...
@@ -226,4 +226,5 @@ test('T5882', normal, compile, ['-v0'])
test
('
T5886
',
extra_clean
(['
T5886a.hi
','
T5886a.o
']),
multimod_compile
,
['
T5886
','
-v0
'])
test
('
T4135
',
normal
,
compile
,
['
-v0
'])
test
('
T5971
',
normal
,
compile_fail
,
['
-v0 -dsuppress-uniques
'])
Write
Preview
Supports
Markdown
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