diff options
author | Adam Chlipala <adamc@hcoop.net> | 2008-07-01 15:58:02 -0400 |
---|---|---|
committer | Adam Chlipala <adamc@hcoop.net> | 2008-07-01 15:58:02 -0400 |
commit | cdc1211c43e9073a4d03472ffb549c67df281cea (patch) | |
tree | 119cb9eae8a53423d4383f3e627d8de4999c6e78 /src/source_print.sml | |
parent | 73b8b2cf8afd5cc8969b3bd4d2c238d9c453e8fd (diff) |
Constraints in modules
Diffstat (limited to 'src/source_print.sml')
-rw-r--r-- | src/source_print.sml | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/src/source_print.sml b/src/source_print.sml index 41051c81..8fc27106 100644 --- a/src/source_print.sml +++ b/src/source_print.sml @@ -287,6 +287,13 @@ fun p_sgn_item (sgi, _) = | SgiInclude sgn => box [string "include", space, p_sgn sgn] + | SgiConstraint (c1, c2) => box [string "constraint", + space, + p_con c1, + space, + string "~", + space, + p_con c2] and p_sgn (sgn, _) = case sgn of @@ -398,6 +405,18 @@ fun p_decl ((d, _) : decl) = | DOpen (m, ms) => box [string "open", space, p_list_sep (string ".") string (m :: ms)] + | DConstraint (c1, c2) => box [string "constraint", + space, + p_con c1, + space, + string "~", + space, + p_con c2] + | DOpenConstraints (m, ms) => box [string "open", + space, + string "constraints", + space, + p_list_sep (string ".") string (m :: ms)] and p_str (str, _) = case str of |