Skip to content

How to type EXCEPT construction #1031

Answered by konnov
timimin asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @timimin,

These messages can be hard to understand. Basically, what the type checker is complaining about is that it does not know, whether Sessions[id] is a function of strings to something, that is, (Str -> a1333), or it is a record that has SessionM as a field. Most likely, the type checker does not see the annotation of Sessions. That happens sometimes, because the type checker gets the annotations as comments from the SANY parser.

How do you annotate Sessions?

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@timimin
Comment options

Answer selected by timimin
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants