Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
GHC
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Reinier Maas
GHC
Commits
6b7c794f
Commit
6b7c794f
authored
18 years ago
by
Ian Lynagh
Browse files
Options
Downloads
Patches
Plain Diff
More ppr tests
The name +_0 is a bit dubious.
parent
f8e0d7dd
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
testsuite/tests/ghc-regress/th/TH_ppr1.hs
+4
-0
4 additions, 0 deletions
testsuite/tests/ghc-regress/th/TH_ppr1.hs
testsuite/tests/ghc-regress/th/TH_ppr1.stdout
+4
-0
4 additions, 0 deletions
testsuite/tests/ghc-regress/th/TH_ppr1.stdout
with
8 additions
and
0 deletions
testsuite/tests/ghc-regress/th/TH_ppr1.hs
+
4
−
0
View file @
6b7c794f
...
...
@@ -26,6 +26,10 @@ main = do runQ [| f u1 u2 |] >>= p
runQ
[
|
\
(
x
:
xs
)
->
x
|
]
>>=
p
runQ
[
d
|
class Foo a b where
foo :: a -> b
|]
>>=
p
runQ
[
|
\
x
->
(
x
,
1
`
x
`
2
)
|
]
>>=
p
runQ
[
|
\
(
+
)
->
((
+
),
1
+
2
)
|
]
>>=
p
runQ
[
|
(
f
,
1
`
f
`
2
)
|
]
>>=
p
runQ
[
|
((
.+.
),
1
.+.
2
)
|
]
>>=
p
p
::
Ppr
a
=>
a
->
IO
()
p
=
putStrLn
.
pprint
...
...
This diff is collapsed.
Click to expand it.
testsuite/tests/ghc-regress/th/TH_ppr1.stdout
+
4
−
0
View file @
6b7c794f
...
...
@@ -8,3 +8,7 @@ Main.u1 GHC.Base.: Main.u2
\(x_0 GHC.Base.: xs_1) -> x_0
class Foo a_0 b_1
where foo :: a_0 -> b_1
\x_0 -> (x_0, 1 `x_0` 2)
\(+_0) -> ((+_0), 1 +_0 2)
(Main.f, 1 `Main.f` 2)
((Main..+.), 1 Main..+. 2)
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment