You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
opentype T;
namespace T of
constructor Int: Integer -> T;
constructor Other: Bool -> Unit -> T;
end;
Storability
Probably shouldn't allow storable, because:
let
opentype storable S;
c = cell @S !"s" ?store;
(m,checkM) = let
constructor M: S !"M";
m: S = M;
checkM: S -> Bool = match M => True; _ => False; end;
in (m,checkM);
in do
c := m;
found <- get c;
pure $ checkM found
end;
Parameters
opentype T +a;
namespace T of
constructor This: Maybe a -> T a;
constructor That: a -> T a;
end;
GADTs
Allowed?
opentype T +a;
namespace T of
constructor IsInt: T Integer; # allowed?
end;
Int.T: T Integer;
fn Int.T => (): T Integer -> Unit; # wrong as GADT
Type
Storability
Probably shouldn't allow
storable
, because:Parameters
GADTs
Allowed?
GADTs might be possible, save for another issue.
Prereq
The text was updated successfully, but these errors were encountered: