Skip to content

Fix benchmark compilation failures#83

Merged
jappeace merged 2 commits into
winterland1989:masterfrom
jappeace-sloth:fix-benchmark-compilation
Apr 20, 2026
Merged

Fix benchmark compilation failures#83
jappeace merged 2 commits into
winterland1989:masterfrom
jappeace-sloth:fix-benchmark-compilation

Conversation

@jappeace-sloth

Copy link
Copy Markdown

Summary

  • Rewrote HttpReq.hs benchmark to use Word8-based combinators from Data.Binary.Parser instead of the deleted Data.Binary.Parser.Char8 module (removed in v1.1.0)
  • Replaced GHC.Prim/GHC.Types imports in ReadInt.hs with GHC.Exts from base, eliminating the need for ghc-prim in build-depends
  • Fixed Word8# vs Word# type mismatch in mhDigitToInt using word8ToWord# conversions
  • Removed stale haddock reference to the deleted Char8 module

Fixes #82

Test plan

  • Reproduced both compilation errors locally on GHC 9.10.3
  • cabal build --enable-benchmarks --enable-tests passes
  • All 146 unit tests pass
  • CI passes

🤖 Generated with Claude Code

jappeace-sloth and others added 2 commits April 20, 2026 18:14
The binary-parsers-bench benchmark has been broken since v1.1.0 due to
two issues:

1. Data.Binary.Parser.Char8 was deleted but HttpReq.hs still imported
   it. Rewrote the benchmark to use Word8-based combinators from
   Data.Binary.Parser instead.

2. ReadInt.hs imported GHC.Prim and GHC.Types directly, but ghc-prim
   was not in build-depends. Replaced with GHC.Exts from base. Also
   fixed Word8# vs Word# type mismatch in mhDigitToInt by using
   word8ToWord# conversions.

Additionally removed stale haddock reference to the deleted Char8
module.

Fixes winterland1989#82

Prompt: Investigate what the hell is going on with this: winterland1989#82
build it locally, reproduce the errors first, then go repair the bugs

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@jappeace jappeace merged commit fd9ecc4 into winterland1989:master Apr 20, 2026
13 checks passed
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

Successfully merging this pull request may close these issues.

Benchmark compilation failure with GHC 9.12.4

2 participants