Skip to content

Error message while parsing cabal.project has odd artifact #10960

Open
@chreekat

Description

@chreekat

Describe the bug

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

Parse of field 'static' failed (<viewAsFieldDescr>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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions