# HG changeset patch # User wenzelm # Date 877338856 -7200 # Node ID 8988ba66c62b832a6a526337035d2038c2335a4c # Parent b6e0c90f3bf45b1dd1e1e2941321ec85c059bb2c lookup long names of types; diff -r b6e0c90f3bf4 -r 8988ba66c62b TFL/tfl.sml --- a/TFL/tfl.sml Mon Oct 20 11:08:29 1997 +0200 +++ b/TFL/tfl.sml Mon Oct 20 11:14:16 1997 +0200 @@ -219,8 +219,7 @@ in (map v_to_pats pref_patl, tm) end else - let val pty as Type (full_ty_name,_) = type_of p; - val ty_name = NameSpace.base full_ty_name; + let val pty as Type (ty_name,_) = type_of p in case (ty_info ty_name) of None => mk_case_fail("Not a known datatype: "^ty_name) @@ -300,7 +299,7 @@ of [] => () | L => mk_functional_err("The following rows (counting from zero)\ \ are inaccessible: "^stringize L) - in {functional = Abs(NameSpace.base fname, ftype, + in {functional = Abs(Sign.base_name fname, ftype, abstract_over (fcon, absfree(aname,atype, case_tm))), pats = patts2} @@ -552,8 +551,7 @@ in mk{path = rstp, rows = ListPair.zip (pat_rectangle', rights')} end else (* column 0 is all constructors *) - let val Type (full_ty_name,_) = type_of p; - val ty_name = NameSpace.base full_ty_name; + let val Type (ty_name,_) = type_of p in case (ty_info ty_name) of None => fail("Not a known datatype: "^ty_name)