Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Effects Are Missing from Types #85

Open
lambduli opened this issue Mar 29, 2023 · 1 comment
Open

Effects Are Missing from Types #85

lambduli opened this issue Mar 29, 2023 · 1 comment

Comments

@lambduli
Copy link

It seems that effects are missing from types.

Using the Eff REPL, when loading a file containing:

effect Whatever : int

let foo x = let bar y = perform Whatever in bar ;;

The REPL produces this output:

val foo : 'a -> 'b -> int = <fun>

It seems to me that there are missing effects on the function type.
I would expect the part !{Whatever} to be there to show that the function foo performs an effect when applied to its second argument.

@matijapretnar
Copy link
Owner

Indeed, we were promising this for years! But it is more or less done now. In fact, if you use #type (well, now that it works - #84), you can already see some of it. However, the display is still broken: we use internal indices to differentiate parameters instead of renumbered ones that are easier on the eyes and I do not know where the parameter constraints have disappeared.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants