Skip to content

Could we number only the problem line? #11091

@philderbeast

Description

@philderbeast

When reporting errors with project files (and cabal files):

    1 | packages: .
    2 | 
    3 | -- This is an error; a trailing `:` is syntax for a field, not a stanza!
    4 | source-repository-package:
      | ^

Do we need all of lines 1..4? Could we number only the problem line and include the lines above and below, unnumbered. This is what GHC does, isn't it?

Originally posted by @philderbeast in #8889 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions