Skip to content

Commit c2e33bf

Browse files
committed
[data] fix pp of type ast
1 parent 875f994 commit c2e33bf

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/data.ml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -638,8 +638,10 @@ module Conversion = struct
638638

639639
exception TypeErr of ty_ast * int * term (* a type error at data conversion time *)
640640

641-
let rec show_ty_ast ?(outer=true) = function
641+
let rec show_ty_ast ?(outer=true) = function
642642
| TyName s -> s
643+
| TyApp ("->",x,[y]) ->
644+
"("^ show_ty_ast x ^ " -> " ^ show_ty_ast y ^")"
643645
| TyApp (s,x,xs) ->
644646
let t = String.concat " " (s :: List.map (show_ty_ast ~outer:false) (x::xs)) in
645647
if outer then t else "("^t^")"

0 commit comments

Comments
 (0)