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
bc053549
Commit
bc053549
authored
Nov 21, 2014
by
eir@cis.upenn.edu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix
#9824
by not warning about unused matches in pattern quotes.
parent
3b3944f9
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
1 deletion
+4
-1
compiler/rename/RnPat.lhs
compiler/rename/RnPat.lhs
+3
-0
testsuite/tests/th/all.T
testsuite/tests/th/all.T
+1
-1
No files found.
compiler/rename/RnPat.lhs
View file @
bc053549
...
...
@@ -203,6 +203,9 @@ matchNameMaker ctxt = LamMk report_unused
-- i.e. when you type 'x <- e' at the GHCi prompt
report_unused = case ctxt of
StmtCtxt GhciStmtCtxt -> False
-- also, don't warn in pattern quotes, as there
-- is no RHS where the variables can be used!
ThPatQuote -> False
_ -> True
rnHsSigCps :: HsWithBndrs RdrName (LHsType RdrName)
...
...
testsuite/tests/th/all.T
View file @
bc053549
...
...
@@ -346,4 +346,4 @@ test('T9209', normal, compile_fail, ['-v0'])
test
('
T7484
',
normal
,
compile_fail
,
['
-v0
'])
test
('
T1476
',
normal
,
compile
,
['
-v0
'])
test
('
T1476b
',
normal
,
compile_fail
,
['
-v0
'])
test
('
T9824
',
expect_broken
(
9824
)
,
compile
,
['
-v0
'])
test
('
T9824
',
normal
,
compile
,
['
-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