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

Error reporting on source files got worse in #2663 #2680

Open
leonschoorl opened this issue Feb 26, 2024 · 0 comments
Open

Error reporting on source files got worse in #2663 #2680

leonschoorl opened this issue Feb 26, 2024 · 0 comments
Labels

Comments

@leonschoorl
Copy link
Member

PR #2663 changed the error reporting on source files from:

SyntaxError.hs:1:20: error: [GHC-58481] parse error on input ‘here’
  |
1 | module SyntaxError here
  |                    ^^^^

to:

<no location info>: error:
    Other error:
    Failed to load module 'SyntaxError.hs'.
    
    Tried to load it from precompiled sources, error was:
    
      <no location info>: error:
          Could not find module `SyntaxError.hs'
          Use -v (or `:set -v` in ghci) to see a list of the files searched for.
    
    Tried to load it from local sources, error was:
    
      SyntaxError.hs:1:20: error: [GHC-58481] parse error on input `here'

It would be nice if we could:

  1. restore the prettier errors we had before
  2. hide the part about precompiled sources when it doesn't apply
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants