Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/levy/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ function. You can load it and try it as follows:
val a : int = 5
val b : int = 15
val c : U (F int) = <thunk>
val fact : U int -> F int = <thunk>
val fact : U (int -> F int) = <thunk>
return (5040) : F int
levy -- programming languages zoo
Type Ctrl-D to exit
6 changes: 3 additions & 3 deletions src/levy/type_check.ml
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,10 @@ and print_ctype ?max_level cty ppf =
"F@ %t"
(print_vtype ~max_level:1 vty)
| CArrow (vty, cty) ->
Zoo.print_parens ?max_level ~at_level:1 ppf
Zoo.print_parens ?max_level ~at_level:3 ppf
"%t@ ->@ %t"
(print_vtype ~max_level:1 vty)
(print_ctype ~max_level:2 cty)
(print_vtype ~max_level:2 vty)
(print_ctype ~max_level:3 cty)

let rec as_ctype {Zoo.data=ty; loc} =
match ty with
Expand Down