We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Currently, type signatures are not allowed in the interpreter. Instead, they lead to an error like in this example:
Idris> let list = ["foo","bar"] : List String in list "(input)" (line 1, column 12): unexpected reserved operator ":" expecting "[", "if", "![", "?", "refl", "proof", "tactics", "case", operator, "(|", "[|", ")", ",", "**", identifier, "instance", "Integer", "Int", "Char", "Float", "String", "Ptr", float, natural, literal string, character, "Set", "()", "_|_", "_", "record", "\\", "let", "(", "|", "{" or "do"
This e.g. makes it impossible to define a list in a let-in-expression because the interpreter can't distinguish it from a vector.
The text was updated successfully, but these errors were encountered:
Try this instead:
Idris> let list : List String = ["foo", "bar"] in list
Sorry, something went wrong.
Ah, nice. Thanks :)
No branches or pull requests
Currently, type signatures are not allowed in the interpreter. Instead, they lead to an error like in this example:
This e.g. makes it impossible to define a list in a let-in-expression because the interpreter can't distinguish it from a vector.
The text was updated successfully, but these errors were encountered: