Skip to content

[Help wanted] [Easy] Where to put enableProfiling #2451

@MeRayORG

Description

@MeRayORG

One would think it rather obvious from the documentation, but I can't figure out for the life of me how to enable profiling and the other module options.

I have my cabal configured to --enable-Profiling and --enable-Library-Profiling.

shell.option doesn't work

And when building, ghc keeps complaining about the libraries for hashable not having been built with profiling.

My flake outputs look something like this

  outputs = { self, nixpkgs, flake-utils, haskellNix }:
    let supportedSystems = [ "x86_64-linux" "x86_64-darwin" "aarch64-linux" "aarch64-darwin"]; in
      flake-utils.lib.eachSystem supportedSystems (system:
      let
        overlays = [
          haskellNix.overlay
          (final: prev: {
            funcman = let inherit (pkgs) lib; in
              final.haskell-nix.project' {
                
                src = ./project/.;
                compiler-nix-name = "ghc984";
            
                shell.tools = { };
                # shell.enableDWARF = true;
                
                shell.buildInputs = (with pkgs; [
                ]);
              
                shell.shellHook = ''
                '';
              };
          })
        ];
        pkgs = import nixpkgs { inherit system overlays; inherit (haskellNix) config; };
        flake = pkgs.project.flake {};
      in flake // {
        legacyPackages = pkgs;
        packages = flake.packages // { default = flake.packages."project:exe:project";};
      });

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions