Skip to content

How to use the new (GHC 9+) native ghc-bignum backend? #1254

@ramirez7

Description

@ramirez7
# default.nix
let
  pkgs = import ./nix/pkgs.nix;
in pkgs.haskell-nix.project {
  src = "<elided>";
  compiler-nix-name = "ghc901";

  modules = [
    {
      packages.ghc-bignum.components.library.configureFlags = ["-f native"];
    }
  ];
}

ghc-pkg describe ghc-bignum still includes hidden-modules: GHC.Num.Backend.GMP, which makes me think it didn't work. But maybe I'm misunderstanding how to validate it?

I also tried setting the flag in my cabal.project file and it also didn't work.

Metadata

Metadata

Assignees

No one assigned

    Labels

    preservedKeep stale bot away

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions