We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 875f994 commit c2e33bfCopy full SHA for c2e33bf
src/data.ml
@@ -638,8 +638,10 @@ module Conversion = struct
638
639
exception TypeErr of ty_ast * int * term (* a type error at data conversion time *)
640
641
-let rec show_ty_ast ?(outer=true) = function
+ let rec show_ty_ast ?(outer=true) = function
642
| TyName s -> s
643
+ | TyApp ("->",x,[y]) ->
644
+ "("^ show_ty_ast x ^ " -> " ^ show_ty_ast y ^")"
645
| TyApp (s,x,xs) ->
646
let t = String.concat " " (s :: List.map (show_ty_ast ~outer:false) (x::xs)) in
647
if outer then t else "("^t^")"
0 commit comments