Skip to content

Commit 29f902c

Browse files
committed
Nicer name for 0-ary tuples.
1 parent 014626a commit 29f902c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/typename.sml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -194,6 +194,8 @@ local
194194

195195
fun showTSML (TVar s) = s
196196
| showTSML (TArray t) = "arr_" ^ showTSML t
197+
| showTSML (TTuple []) =
198+
"unit"
197199
| showTSML (TTuple ts) =
198200
"tup" ^ Int.toString (length ts) ^ "_" ^ punctuate "_" (map showTSML ts)
199201
| showTSML (TRecord ts) =

0 commit comments

Comments
 (0)