Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
cduce
cduce
Commits
aeac89de
Commit
aeac89de
authored
Oct 05, 2007
by
Pietro Abate
Browse files
[r2004-12-28 11:21:41 by afrisch] Pretty-print abstract types
Original author: afrisch Date: 2004-12-28 11:21:41+00:00
parent
ba7efa7e
Changes
1
Show whitespace changes
Inline
Side-by-side
types/types.ml
View file @
aeac89de
...
...
@@ -183,10 +183,12 @@ struct
include
SortedList
.
FiniteCofinite
(
T
)
let
print
=
function
|
Finite
[]
->
[
]
|
Cofinite
[]
->
[
fun
ppf
->
Format
.
fprintf
ppf
"Abstract"
]
|
Finite
l
->
List
.
map
(
fun
x
ppf
->
Format
.
fprintf
ppf
"!%s"
x
)
l
|
Cofinite
_
->
assert
false
|
Cofinite
l
->
[
fun
ppf
->
Format
.
fprintf
ppf
"@[Abstract"
;
List
.
iter
(
fun
x
->
Format
.
fprintf
ppf
"
\\
@ !%s"
x
)
l
;
Format
.
fprintf
ppf
"@]"
]
end
...
...
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