Skip to content

Figure out how best to integrate with GHC's new error messages #1802

@goldfirere

Description

@goldfirere

Please close this ticket and redirect me if this is the wrong place to post.

@adinapoli and I are hard at work making GHC's error messages easier to work with. Specifically, instead of just rendering these into strings, we're building ADTs to describe the error messages semantically. The idea is that an IDE or other tool would be able to grab these error messages and act on them without parsing GHC's string output.

After an unreasonable amount of clearing away old cruft, we're finally at the point of actually building these ADTs. An accessible sampling of the idea is at https://gitlab.haskell.org/ghc/ghc/-/merge_requests/5533/diffs#820a2607941cd6fe77ba25c9a59b3f1ee106bb01_108_114.

We'd like feedback about what we're doing here, with two specific questions:

  1. How does the type linked above look? Is this the right general approach? It's much easier to learn this now, before converting lots and lots of other error messages!
  2. How should we communicate these messages to clients? See also a recent post to ghc-devs (the archives appear down at the moment, which I've reported; will add link when I can) on this point.

Ideally, we'd love to have a point person from the HLS community to collaborate with us in making sure that we're building in a direction that will be maximally useful downstream. No code contributions expected, just some design thoughts occasionally.

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    status: in discussionNot actionable, because discussion is still ongoing or there's no decision yettype: enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions