Skip to content

Regression in parsing hscolour.cabal #35

@AlexandreTunstall

Description

@AlexandreTunstall

After updating MicroCabal to 0.5.8.0-4568cc27378c95585617ba1ec96cbf0ab71fd688, it fails to parse hscolour.cabal.

mcabal: uncaught exception: error: "src/MicroCabal/Parse.hs",32:34: 
  found:    '\FS'
  expected: ',' '"' word
  file: "hscolour.cabal"
  line: 47
  at: "\n\n\nExecutable HsColour\n  Build-depends: base < 10, containers\n  Default-Language: Haskell98\n  Main-i"

Version 0.5.3.0-31f1b5dec81561a1b1d36b8e3065ce091dce2ec6 is able to parse the file without issue.


Reproducer:

nix build github:AlexandreTunstall/nixpkgs/refs/tags/2026-04-09-mcabal-regression#haskell.packages.microhs.hscolour --no-link

Reproducer for last known working version:

nix build github:AlexandreTunstall/nixpkgs/refs/tags/2026-04-09-mcabal-working#haskell.packages.microhs.hscolour --no-link

(You can diff these two tags if you need to see the details behind the version change.)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions