You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
title = "How to configure a Cabal project for profiling"
3
+
date = 2024-11-27
4
+
[taxonomies]
5
+
authors = ["Hécate"]
6
+
categories = ["Cabal"]
7
+
tags = ["Performance", "Profiling"]
8
+
+++
9
+
10
+
The [Cabal Manual][Cabal Manual] now has a guide on how to analyse the performance of Haskell applications.
11
+
12
+
<!-- more -->
13
+
14
+
This guide was contributed very generously by Malte Neuss. It describes the various options you can set in your `cabal.project` file in order to get a time or space profile of your application.
15
+
16
+
## Configuring a project
17
+
18
+
As you progress through it, you will be pointed to other resources like the [Profiling section of the GHC Users Guide][GHC] and the [Haskell Optimization Handbook][HsOpt].
19
+
It is the recommended entry point for newcomers into the world of Haskell performance analysis.
20
+
21
+
You can read it there: <https://cabal.readthedocs.io/en/latest/how-to-analyze-haskell-code-performance.html>.
22
+
23
+
## Contribute to the documentation
24
+
25
+
The manual follows the [documentation best practices](@/documentation-best-practices-in-2024/index.md) of the Haddock team, and the Cabal team is eager to receive more contributions to improve the life
26
+
of our users. Do not hesitate to open a pull request at <https://github.com/haskell/cabal>.
0 commit comments