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

theory syntax should allow type declarations #10

Open
jwaldmann opened this issue Mar 23, 2017 · 6 comments
Open

theory syntax should allow type declarations #10

jwaldmann opened this issue Mar 23, 2017 · 6 comments

Comments

@jwaldmann
Copy link
Contributor

Not a bug. But I'd appreciate hints on how this feature could be implemented (relative to the current code base) most easily.

I want to write

inorder :: Tree a -> List a

right next to the actual definitions (current parser simply rejects this). For my own sanity, for documentation, and because I recommend this coding style to my students.

@larsrh
Copy link
Contributor

larsrh commented Mar 23, 2017

Do you want the type signatures to be actually checked? Or do they merely have documentation status?

@jwaldmann
Copy link
Contributor Author

Checked. Cyp does type inference anyway?

@larsrh
Copy link
Contributor

larsrh commented Mar 23, 2017

No. Cyp is completely untyped.

@jwaldmann
Copy link
Contributor Author

Ah, I see.

@larsrh
Copy link
Contributor

larsrh commented Mar 23, 2017

I just found this: haskell-tc. So it could be implemented. But I don't see myself having the time to do it 😦

@jwaldmann
Copy link
Contributor Author

Sure. I was not implying that you should to it. Also, we don't need full Haskell typing here, plain Hindley-Milner will do.

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

No branches or pull requests

2 participants