haskell / haskell/cabal

Error message while parsing cabal.project has odd artifact

Open
#10,960 3 comments 0 reactions 0 assignees View on GitHub
status: fixed in master type: bug
Dominant language
Haskell
Stars
1.7k
Forks
750
Avg merge
4d 3h
Merged PRs (30d)
28

Description

### Describe the bug
While making a repro for #10957, I noticed an odd error message. It looks like:

```
Parse of field 'static' failed (True ): True
```

### To Reproduce
*See #10957*

### Expected behavior

I dunno, maybe something like:
```
Parse of field 'static' failed: "True "
static: True
^----
````

But I assume Cabal has better routines for printing errors it can already use. Using what it already has is better than making up something new.

### System information
- NixOS

```
$ cabal -V
cabal-install version 3.12.1.0
compiled using version 3.12.1.0 of the Cabal library
```

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.