Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Glasgow Haskell Compiler
GHC
Commits
9f092337
Commit
9f092337
authored
Oct 31, 2003
by
simonpj
Browse files
[project @ 2003-10-31 12:56:50 by simonpj]
Pretty-printing wibble; fixes many tests
parent
57573e7e
Changes
1
Hide whitespace changes
Inline
Side-by-side
ghc/compiler/types/TypeRep.lhs
View file @
9f092337
...
...
@@ -523,6 +523,8 @@ ppr_type p ty@(ForAllTy _ _)
split2 ps ty = (reverse ps, ty)
ppr_tc_app :: Prec -> TyCon -> [Type] -> SDoc
ppr_tc_app p tc []
= ppr tc
ppr_tc_app p tc [ty]
| tc `hasKey` listTyConKey = brackets (pprType ty)
| tc `hasKey` parrTyConKey = ptext SLIT("[:") <> pprType ty <> ptext SLIT(":]")
...
...
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