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,249
Issues
4,249
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
00f202fd
Commit
00f202fd
authored
Jul 21, 2010
by
Simon Peyton Jones
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add test for Trac
#4188
parent
9b08e179
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
35 additions
and
0 deletions
+35
-0
testsuite/tests/ghc-regress/th/T4188.hs
testsuite/tests/ghc-regress/th/T4188.hs
+28
-0
testsuite/tests/ghc-regress/th/T4188.stderr
testsuite/tests/ghc-regress/th/T4188.stderr
+6
-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/T4188.hs
0 → 100644
View file @
00f202fd
{-# LANGUAGE TemplateHaskell, GADTs #-}
module
T4188
where
import
Language.Haskell.TH
import
IO
class
C
a
where
{}
data
T1
a
where
MkT1
::
a
->
b
->
T1
a
data
T2
a
where
MkT2
::
(
C
a
,
C
b
)
=>
a
->
b
->
T2
a
data
T3
x
where
MkT3
::
(
C
x
,
C
y
)
=>
x
->
y
->
T3
(
x
,
y
)
$
(
do
{
dec1
<-
reify
''T1
;
runIO
(
putStrLn
(
pprint
dec1
))
;
dec2
<-
reify
''T2
;
runIO
(
putStrLn
(
pprint
dec2
))
;
dec3
<-
reify
''T3
;
runIO
(
putStrLn
(
pprint
dec3
))
;
runIO
(
hFlush
stdout
)
;
return
[]
})
testsuite/tests/ghc-regress/th/T4188.stderr
0 → 100644
View file @
00f202fd
data T4188.T1 a_0 = forall b_1 . T4188.MkT1 a_0 b_1
data T4188.T2 a_0
= forall b_1 . (T4188.C a_0, T4188.C b_1) => T4188.MkT2 a_0 b_1
data T4188.T3 x_0
= forall x_1 y_2 . (x_0 ~ (x_1, y_2), T4188.C x_1, T4188.C y_2) =>
T4188.MkT3 x_1 y_2
testsuite/tests/ghc-regress/th/all.T
View file @
00f202fd
...
...
@@ -163,3 +163,4 @@ test('T3845', normal, compile, ['-v0'])
test
('
T3899
',
extra_clean
(['
T3899a.hi
','
T3899a.o
']),
multimod_compile
,
['
T3899
','
-v0 -ddump-splices -dsuppress-uniques
'])
test
('
T4056
',
normal
,
compile
,
['
-v0
'])
test
('
T4188
',
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