Visitar URL original
Add an option to build executables (including test suites/benchmarks) using bytecode · Issue #12515 · haskell/cabal · GitHub
Skip to content

Add an option to build executables (including test suites/benchmarks) using bytecode #12515

Open

Description

@TeofilC

Cabal already supports either dynamically or statically linking executables.
I suggest we should also allow building bytecode executables, which would include test suites and benchmarks.

Motivation

The main motivation for this is to benefit from the speed of a workflow that makes use of bytecode, eg, when using cabal repl, but with the ease of use of your standard CLI flags. So, cabal build all and cabal test all would do what you would expect normally but producing executables that just load generated bytecode.

This would likely require support for GHC's new .gbc files.

cc @fendor

Activity

  1. fendor commented on Nov 3, 2026

    @fendor
    Collaborator

    FYI, .gbc files can currently be generated with --enable-bytecode-libraries, but it looks like this doesn't work with cabal repl, see #11981

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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