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

The call to ${line(kind, source.name)} in every error message should be implicit #6735

Open
magnus-madsen opened this issue Nov 21, 2023 · 1 comment · May be fixed by #7471
Open

The call to ${line(kind, source.name)} in every error message should be implicit #6735

magnus-madsen opened this issue Nov 21, 2023 · 1 comment · May be fixed by #7471
Assignees
Labels
student programmer Relevant for student programmers

Comments

@magnus-madsen
Copy link
Member

magnus-madsen commented Nov 21, 2023

Right now we have to write:

    def message(formatter: Formatter): String = {
      import formatter._
      s"""${line(kind, source.name)} // THIS LINE SEEMS TO APPEAR EVERYWHERE
         |>> Cannot derive ${magenta(classSym.name)} for empty enum '${red(sym.name)}'.
         |
         |${code(loc, "illegal derivation")}
         |
         |Flix cannot derive any trait instances for empty enumerations.
         |""".stripMargin
    }
@magnus-madsen magnus-madsen added the student programmer Relevant for student programmers label Nov 21, 2023
@magnus-madsen
Copy link
Member Author

@jaschdoc Something to look at after Validation cleanup.

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

Successfully merging a pull request may close this issue.

2 participants