haskell / haskell/cabal

Could we number only the problem line?

Open
#11,091 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Haskell
Stars
1.7k
Forks
750
Avg merge
4d 3h
Merged PRs (30d)
28

Description

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 https://github.com/haskell/cabal/pull/8889#discussion_r2213579263_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.