diff options
author | Sergey Mironov <grrwlf@gmail.com> | 2013-10-07 14:08:10 +0400 |
---|---|---|
committer | Sergey Mironov <grrwlf@gmail.com> | 2013-10-07 14:08:10 +0400 |
commit | 521ba1a43e3d75deec4dcf2eafdf7e4e7b72b15e (patch) | |
tree | 21fe674ade327eba98964f3060a35e7f73a1def4 | |
parent | e92b616737083d2f847db38c9cb8918f96595a04 (diff) |
Add show instance for 'id' type
-rw-r--r-- | lib/ur/basis.urs | 1 | ||||
-rw-r--r-- | src/monoize.sml | 6 |
2 files changed, 7 insertions, 0 deletions
diff --git a/lib/ur/basis.urs b/lib/ur/basis.urs index 73cef3d2..eefb5d2c 100644 --- a/lib/ur/basis.urs +++ b/lib/ur/basis.urs @@ -775,6 +775,7 @@ val redirect : t ::: Type -> url -> transaction t type id val fresh : transaction id val giveFocus : id -> transaction unit +val show_id : show id val dyn : ctx ::: {Unit} -> use ::: {Type} -> bind ::: {Type} -> [ctx ~ [Dyn]] => unit -> tag [Signal = signal (xml ([Dyn] ++ ctx) use bind)] ([Dyn] ++ ctx) [] use bind diff --git a/src/monoize.sml b/src/monoize.sml index ad53cf18..2b604325 100644 --- a/src/monoize.sml +++ b/src/monoize.sml @@ -1267,6 +1267,12 @@ fun monoExp (env, st, fm) (all as (e, loc)) = in ((L'.EAbs ("s", s, s, (L'.ERel 0, loc)), loc), fm) end + | L.EFfi ("Basis", "show_id") => + let + val s = (L'.TFfi ("Basis", "string"), loc) + in + ((L'.EAbs ("s", s, s, (L'.ERel 0, loc)), loc), fm) + end | L.EFfi ("Basis", "show_char") => ((L'.EFfi ("Basis", "charToString"), loc), fm) | L.EFfi ("Basis", "show_bool") => |