Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Alex D
GHC
Commits
c2dc3369
Commit
c2dc3369
authored
May 20, 2013
by
gmainland
Browse files
Update tests now that declaration splices are legal everywhere.
parent
1d43475b
Changes
4
Hide whitespace changes
Inline
Side-by-side
testsuite/tests/th/T7532.stderr
View file @
c2dc3369
...
...
@@ -5,7 +5,7 @@ instance C Bool where
==================== Renamer ====================
bang
$
bang
T7532.hs:1:1: Splicing declarations
bang
...
...
testsuite/tests/th/TH_dataD1.hs
View file @
c2dc3369
...
...
@@ -5,6 +5,7 @@ import Language.Haskell.TH
ds
::
Q
[
Dec
]
ds
=
[
d
|
$(dataD [] (mkName "D") [] [normalC "K" []] [])
$(do { d <- dataD (cxt []) (mkName "D") [] [normalC (mkName "K") []] []
; return [d]})
|]
testsuite/tests/th/TH_dataD1.stderr
View file @
c2dc3369
TH_dataD1.hs:8:13:
Declaration splices are not permitted inside declaration brackets
In the Template Haskell quotation
[d| $(dataD [] (mkName "D") [] [normalC "K" []] []) |]
testsuite/tests/th/all.T
View file @
c2dc3369
...
...
@@ -120,7 +120,7 @@ test('TH_dupdecl', normal, compile_fail, ['-v0'])
test
('
TH_exn2
',
normal
,
compile_fail
,
['
-v0
'])
test
('
TH_recover
',
normal
,
compile_and_run
,
[''])
test
('
TH_dataD1
',
normal
,
compile
_fail
,
['
-v0
'])
test
('
TH_dataD1
',
normal
,
compile
,
['
-v0
'])
test
('
TH_ppr1
',
normal
,
compile_and_run
,
[''])
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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