Home My Page Projects Code Snippets Project Openings SML/NJ Bugs
Summary Activity Tracker Lists

[#277] Excess white space when pretty printing a module signature

Date:
2020-11-25 14:56
Priority:
3
State:
Closed
Submitted by:
Bug Submitter (webuser)
Assigned to:
John Reppy (jhr)
Machine Architecture:
None
Operating System:
Generic Unix
Component:
Compiler
Resolution:
Fixed
Severity:
Cosmetic
OS Version:
SML/NJ Version:
110.98.1
Keywords:
pretty printing
URL:
Transcript (of reproduction):
<jhr@aeneas> sml Standard ML of New Jersey (64-bit) v110.98.1 [built: Tue Aug 25 16:59:36 2020] - CM.autoload "$/unix-lib.cm"; [autoloading] [library $smlnj/cm/cm.cm is stable] [library $smlnj/internal/cm-sig-lib.cm is stable] [library $/pgraph.cm is stable] [library $smlnj/internal/srcpath-lib.cm is stable] [library $SMLNJ-BASIS/basis.cm is stable] [library $SMLNJ-BASIS/(basis.cm):basis-common.cm is stable] [autoloading done] [library $/unix-lib.cm is stable] val it = true : bool - open UnixPath; [autoloading] [autoloading done] opening UnixPath type path_list = string list val getPath : unit -> path_list datatype access_mode = datatype access_mode = A_EXEC | A_READ | A_WRITE datatype file_type = F_BLK | F_CHR | F_DIR | F_REGULAR | F_SOCK | F_SYMLINK val findFile : path_list * access_mode list -> string -> string option val findFiles : path_list * access_mode list -> string -> string list val findFileOfType : path_list * file_type * access_mode list -> string -> string option val findFilesOfType : path_list * file_type * access_mode list -> string -> string list -
Source (for reproduction):
CM.autoload "$/unix-lib.cm"; open UnixPath;
Summary:
Excess white space when pretty printing a module signature

Detailed description
When opening a structure that contains datatypes in the REPL,
extra blank lines (one per constructor) are printed after the
datatype spec.
Submitted via web form by John Reppy <jhr@cs.uchicago.edu>

Comments:

Message  ↓
Date: 2020-12-22 21:23
Sender: John Reppy

Fixed for 110.99

Attached Files:

Changes

Field Old Value Date By
status_idOpen2020-12-22 21:23jhr
close_dateNone2020-12-22 21:23jhr
assigned_tonone2020-12-22 21:23jhr
detailsWhen opening a structure that contains datatypes in the REPL, extra blank lines (one per constructor) are printed after the datatype spec. Submitted via web form by John Reppy <jhr@cs.uchicago.edu> 2020-12-22 21:23jhr
ResolutionNone2020-12-22 21:23jhr
Transcript (of reproduction)<jhr@aeneas> sml Standard ML of New Jersey (64-bit) v110.98.1 [built: Tue Aug 25 16:59:36 2020] - CM.autoload "$/unix-lib.cm"; [autoloading] [library $smlnj/cm/cm.cm is stable] [library $smlnj/internal/cm-sig-lib.cm is stable] [library $/pgraph.cm is stable] [library $smlnj/internal/srcpath-lib.cm is stable] [library $SMLNJ-BASIS/basis.cm is stable] [library $SMLNJ-BASIS/(basis.cm):basis-common.cm is stable] [autoloading done] [library $/unix-lib.cm is stable] val it = true : bool - open UnixPath; [autoloading] [autoloading done] opening UnixPath type path_list = string list val getPath : unit -> path_list datatype access_mode = datatype access_mode = A_EXEC | A_READ | A_WRITE datatype file_type = F_BLK | F_CHR | F_DIR | F_REGULAR | F_SOCK | F_SYMLINK val findFile : path_list * access_mode list -> string -> string option val findFiles : path_list * access_mode list -> string -> string list val findFileOfType : path_list * file_type * access_mode list -> string -> string option val findFilesOfType : path_list * file_type * access_mode list -> string -> string list - 2020-12-22 21:23jhr
Source (for reproduction)CM.autoload "$/unix-lib.cm"; open UnixPath; 2020-12-22 21:23jhr