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
unknown variable
This is a pretty minor nit, but when you call the type name instead of the constructor:
(defpackage #:unknown-variable-type-error (:use #:coalton #:coalton-prelude)) (in-package #:unknown-variable-type-error) (coalton-toplevel (define-type DataType (Data1 Integer) (Data2 String)) (define (return-data int) (DataType int)))
It returns the error:
(DATATYPE INT))) ^^^^^^^^ unknown variable
Which seems vague, and also, technically it's not an unknown variable.
The text was updated successfully, but these errors were encountered:
It is an unknown variable, but we should do a check to see if the "variable" defines a type, and say "did you mean a constructor of type FOO?"
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
This is a pretty minor nit, but when you call the type name instead of the constructor:
It returns the error:
Which seems vague, and also, technically it's not an unknown variable.
The text was updated successfully, but these errors were encountered: