summaryrefslogtreecommitdiff
path: root/src/flat.sml
diff options
context:
space:
mode:
Diffstat (limited to 'src/flat.sml')
-rw-r--r--src/flat.sml7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/flat.sml b/src/flat.sml
index 543cd42f..55c7397a 100644
--- a/src/flat.sml
+++ b/src/flat.sml
@@ -30,7 +30,8 @@ structure Flat = struct
type 'a located = 'a ErrorMsg.located
datatype typ' =
- TFun of typ * typ
+ TTop
+ | TFun of typ * typ
| TCode of typ * typ
| TRecord of (string * typ) list
| TNamed of int
@@ -44,10 +45,10 @@ datatype exp' =
| ECode of int
| EApp of exp * exp
- | ERecord of (string * exp) list
+ | ERecord of (string * exp * typ) list
| EField of exp * string
- | ELet of (string * exp) list * exp
+ | ELet of (string * typ * exp) list * exp
withtype exp = exp' located