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,248
Issues
4,248
List
Boards
Labels
Service Desk
Milestones
Iterations
Merge Requests
391
Merge Requests
391
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
21271c6c
Commit
21271c6c
authored
Mar 17, 2010
by
Simon Peyton Jones
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add test for Trac
#3920
parent
b30df6ee
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
18 additions
and
0 deletions
+18
-0
testsuite/tests/ghc-regress/th/T3920.hs
testsuite/tests/ghc-regress/th/T3920.hs
+15
-0
testsuite/tests/ghc-regress/th/T3920.stdout
testsuite/tests/ghc-regress/th/T3920.stdout
+2
-0
testsuite/tests/ghc-regress/th/all.T
testsuite/tests/ghc-regress/th/all.T
+1
-0
No files found.
testsuite/tests/ghc-regress/th/T3920.hs
0 → 100644
View file @
21271c6c
{-# LANGUAGE EmptyDataDecls, TypeFamilies, TemplateHaskell #-}
module
Main
where
import
Language.Haskell.TH
type
family
S
::
(
*
->
(
*
->
*
->
*
))
->
(
*
->
*
)
->
*
test
::
String
test
=
$
(
do
test
<-
[
d
|
type family T :: (* -> (* -> * -> *)) -> (* -> *) -> *
|]
blah
<-
reify
''S
return
(
LitE
(
StringL
(
pprint
test
++
"
\n
"
++
pprint
blah
))))
main
=
putStrLn
test
testsuite/tests/ghc-regress/th/T3920.stdout
0 → 100644
View file @
21271c6c
type family T :: (* -> * -> * -> *) -> (* -> *) -> *
type family Main.S :: (* -> * -> * -> *) -> (* -> *) -> *
testsuite/tests/ghc-regress/th/all.T
View file @
21271c6c
...
...
@@ -155,6 +155,7 @@ test('T3395', normal, compile_fail, ['-v0'])
test
('
T3467
',
normal
,
compile
,
[''])
test
('
T3572
',
normal
,
compile_and_run
,
[''])
test
('
T3100
',
normal
,
compile
,
['
-v0
'])
test
('
T3920
',
normal
,
compile_and_run
,
['
-v0
'])
test
('
T3600
',
extra_clean
(['
T3600a.hi
','
T3600a.o
']),
multimod_compile
,
['
T3600
','
-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