Skip to content

Add example of how to enable profiling for executables and libraries to docs #793

Closed
@codygman

Description

@codygman

I think this is correct (my in progress build with *.p_o implies so at least):

pkgs.haskell-nix.project {
  # 'cleanGit' cleans a source directory based on the files known by git
  projectFileName = "cabal.project";
  src = pkgs.haskell-nix.haskellLib.cleanGit {
    name = "haskell-language-server";
    src = ./.;
  };
  modules = [
    { enableExecutableProfiling = true; }
  ];
  # For `cabal.project` based projects specify the GHC version to use.
  compiler-nix-name = "ghc884"; # Not used for `stack.yaml` based projects.
}

How does that work actually? If nothing is specified in any list of the module list the value applies to all?

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