forked from commercialhaskell/stack
-
Notifications
You must be signed in to change notification settings - Fork 0
/
cabal.project
40 lines (40 loc) · 1.71 KB
/
cabal.project
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
-- This file is a configuration file for Cabal (the tool). It is provided to
-- assist some users of that tool to develop Stack. For information about
-- `cabal.project` files, see:
-- https://cabal.readthedocs.io/en/stable/cabal-project.html.
--
-- For information about possible limitations of the `cabal.config` files
-- corresponding to Stackage package sets that are made available by Stackage
-- see: https://github.com/fpco/stackage-server/issues/232.
--
-- `import:` is only available to users of Cabal (the tool) >= 3.8.1.0.
--
-- The constraints in file `cabal.config` can be obtained by commanding:
--
-- > stack ls dependencies cabal > cabal.config
--
-- However, be aware that, in respect of the `unix` package or the `Win32`
-- package (that may come with GHC, depending on the operating system):
--
-- * on Windows, the Stack project does not depend on `unix` but depends on
-- `Win32`; and
--
-- * on non-Windows operating systems, the Stack project does not depend on
-- `Win32` but depends on `unix`.
--
-- The command above will add one of the two packages to `cabal.config` but omit
-- the other. A comprehensive `cabal.config` will need to be created by editing
-- the command's output.
--
-- Also be aware that there may be other packages required only on non-Windows
-- systems. For example, the `hinotify` package.
--
-- Be sure to set `with-compiler: ghc-x.y.z` below to the version of GHC that is
-- specified by the snapshot specifed in Stack's project-level YAML
-- configuration file (`stack.yaml`). The relevant version of GHC can be
-- confirmed by reviewing the snapshot on Stackage. For example, at:
-- https://www.stackage.org/lts-22.21/cabal.config.
--
with-compiler: ghc-9.6.5
import: cabal.config
packages: .