cyp
cyp copied to clipboard
theory syntax should allow type declarations
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.
Do you want the type signatures to be actually checked? Or do they merely have documentation status?
Checked. Cyp does type inference anyway?
No. Cyp is completely untyped.
Ah, I see.
I just found this: haskell-tc. So it could be implemented. But I don't see myself having the time to do it 😦
Sure. I was not implying that you should to it. Also, we don't need full Haskell typing here, plain Hindley-Milner will do.