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

Feature request: support mutual inductive types in signatures #47

Closed
Vtec234 opened this issue Sep 13, 2023 · 1 comment
Closed

Feature request: support mutual inductive types in signatures #47

Vtec234 opened this issue Sep 13, 2023 · 1 comment
Labels
enhancement New feature or request

Comments

@Vtec234
Copy link

Vtec234 commented Sep 13, 2023

Problem

(Please forgive my terminology, this might not actually be a "mutual inductive type" in StandardML terms.) The following code is accepted by SML/NJ but shows an error in Millet.

datatype foo1 = Foo1 of bar1 (* works *)
and bar1 = Bar1 of int

datatype bar2 = Bar2 of int (* works *)
and foo2 = Foo2 of bar2
 
signature BLAH =
sig
  datatype foo3 = Foo3 of bar3 (* undefined type: `bar3` Millet(5001) *)
  and bar3 = Bar3 of int

  datatype bar4 = Bar4 of int (* works *)
  and foo4 = Foo4 of bar4
end

Expected behaviour

datatype foo3 in the signature should be accepted by Millet.

@Vtec234 Vtec234 added the enhancement New feature or request label Sep 13, 2023
@azdavis
Copy link
Owner

azdavis commented Sep 14, 2023

fixed in v0.13.3

@azdavis azdavis closed this as completed Sep 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants