diff options
author | Adam Chlipala <adam@chlipala.net> | 2013-08-19 12:25:32 -0400 |
---|---|---|
committer | Adam Chlipala <adam@chlipala.net> | 2013-08-19 12:25:32 -0400 |
commit | f718e640c3cbe6a891519364992117f49ca333fa (patch) | |
tree | b7581cc191267590b2ee407d91161bd2950e3604 /src/source_print.sml | |
parent | 42fab45125992244c499ec5ac64e0376109bd4cb (diff) |
Allow [where con] to descend within submodule structure; open submodule constraints while checking later signature items
Diffstat (limited to 'src/source_print.sml')
-rw-r--r-- | src/source_print.sml | 24 |
1 files changed, 13 insertions, 11 deletions
diff --git a/src/source_print.sml b/src/source_print.sml index cd3314e1..c8a38922 100644 --- a/src/source_print.sml +++ b/src/source_print.sml @@ -505,17 +505,19 @@ and p_sgn (sgn, _) = string ":", space, p_sgn sgn'] - | SgnWhere (sgn, x, c) => box [p_sgn sgn, - space, - string "where", - space, - string "con", - space, - string x, - space, - string "=", - space, - p_con c] + | SgnWhere (sgn, ms, x, c) => box [p_sgn sgn, + space, + string "where", + space, + string "con", + space, + p_list_sep (string ".") + string (ms @ [x]), + string x, + space, + string "=", + space, + p_con c] | SgnProj (m, ms, x) => p_list_sep (string ".") string (m :: ms @ [x]) |