diff --git a/dotscape b/dotscape index 9e5726f..cea6421 100755 Binary files a/dotscape and b/dotscape differ diff --git a/imperative-shell/file-thread.sml b/imperative-shell/file-thread.sml index 7d29e60..0d3367b 100644 --- a/imperative-shell/file-thread.sml +++ b/imperative-shell/file-thread.sml @@ -39,8 +39,12 @@ struct | [] => () fun saveTriangles triangles = - let val io = TextIO.openOut filename - in helpSaveTriangles (triangles, io) + let + val io = TextIO.openOut filename + val _ = helpSaveTriangles (triangles, io) + val _ = TextIO.closeOut io + in + () end fun run fileMailbox =