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
jberryman
GHC
Commits
f64f7c36
Commit
f64f7c36
authored
Oct 08, 2015
by
Jan Stolarek
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Tests for #10945 and #10946
parent
e2b579e8
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
24 additions
and
0 deletions
+24
-0
testsuite/tests/th/T10945.hs
testsuite/tests/th/T10945.hs
+14
-0
testsuite/tests/th/T10946.hs
testsuite/tests/th/T10946.hs
+8
-0
testsuite/tests/th/all.T
testsuite/tests/th/all.T
+2
-0
No files found.
testsuite/tests/th/T10945.hs
0 → 100644
View file @
f64f7c36
{-# LANGUAGE TemplateHaskell #-}
module
T10945
where
import
Language.Haskell.TH
$$
(
return
[
SigD
(
mkName
"m"
)
(
ForallT
[
PlainTV
(
mkName
"a"
)]
[]
(
AppT
(
AppT
ArrowT
(
VarT
(
mkName
"a"
)))
(
VarT
(
mkName
"a"
))))
,
FunD
(
mkName
"m"
)
[
Clause
[
VarP
(
mkName
"x"
)]
(
NormalB
(
VarE
(
mkName
"x"
)))
[]
]
])
testsuite/tests/th/T10946.hs
0 → 100644
View file @
f64f7c36
{-# LANGUAGE TemplateHaskell #-}
module
T10946
where
import
Language.Haskell.TH
m
::
a
->
a
m
x
=
$$
([
||
_
||
])
testsuite/tests/th/all.T
View file @
f64f7c36
...
...
@@ -360,3 +360,5 @@ test('TH_namePackage', normal, compile_and_run, ['-v0'])
test
('
T10811
',
normal
,
compile
,
['
-v0
'])
test
('
T10810
',
normal
,
compile
,
['
-v0
'])
test
('
T10891
',
normal
,
compile
,
['
-v0
'])
test
('
T10945
',
expect_broken
(
10945
),
compile
,
['
-v0
'])
test
('
T10946
',
expect_broken
(
10946
),
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