Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

serialise versus benchmark fails to parse internal cabal libraries #297

Open
FinleyMcIlwaine opened this issue Jul 28, 2022 · 0 comments
Open

Comments

@FinleyMcIlwaine
Copy link
Collaborator

Cabal 2.0 introduced internal libraries which are specified by library fields accompanied by a name. The benchmark errors when it sees such a name:

syntaxError line_no "'library' expects no argument"

The following is the log of the failure from cabal bench:

Running 1 benchmarks...
Benchmark versus: RUNNING...
INFO: Copying hackage index... OK (in 0.093949s)
INFO: Creating bench/data/binary.bin... versus: stooq-api/0.3.1.0/stooq-api.cabal: FromString "'library' expects no argument" (Just 24)
CallStack (from HasCallStack):
  error, called at bench/versus/Macro/Load.hs:56:44 in main:Macro.Load
Benchmark versus: ERROR
cabal: Benchmarks failed for bench:versus from serialise-0.2.5.0.
@FinleyMcIlwaine FinleyMcIlwaine changed the title serialise versus benchmarks fail to parse internal cabal libraries serialise versus benchmark fails to parse internal cabal libraries Jul 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant