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

Improve how we type error messages in the compiler #2310

Open
infomiho opened this issue Sep 27, 2024 · 0 comments
Open

Improve how we type error messages in the compiler #2310

infomiho opened this issue Sep 27, 2024 · 0 comments
Labels
haskell refactoring Keeping that code clean!

Comments

@infomiho
Copy link
Contributor

Based on this comment: #2297 (comment)

We often return some String errors and to give more context we create a type alias e.g. type ErrorMsg = String or type CompileError = String. While this makes sense, we'll keep adding these aliases to String and we'll have a lot of similarly named aliases.

Maybe we shouldn't alias String and use a proper data type for errors?

@Martinsos Martinsos added the refactoring Keeping that code clean! label Oct 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
haskell refactoring Keeping that code clean!
Projects
None yet
Development

No branches or pull requests

2 participants