1
+ .. highlight :: shell
1
2
2
3
Quickstart
3
4
==========
@@ -27,7 +28,7 @@ directory with a folder per package, e.g., the folders ``Cabal`` and
27
28
``cabal-install ``. The ``cabal.project `` file specifies each folder as
28
29
part of the project:
29
30
30
- ::
31
+ .. code-block :: cabal
31
32
32
33
packages: Cabal/
33
34
cabal-install/
@@ -320,8 +321,9 @@ solver under the current index and flags. A ``cabal.project.freeze``
320
321
file has the same syntax as ``cabal.project `` and looks something like
321
322
this:
322
323
323
- ::
324
+ .. highlight :: cabal
324
325
326
+ ::
325
327
constraints: HTTP ==4000.3.3,
326
328
HTTP +warp-tests -warn-as-error -network23 +network-uri -mtl1 -conduit10,
327
329
QuickCheck ==2.9.1,
@@ -547,15 +549,15 @@ The following settings control the behavior of the dependency solver:
547
549
Version bounds have the same syntax as ``build-depends ``. You can
548
550
also specify flag assignments:
549
551
550
- .. code-block :: yaml
552
+ ::
551
553
552
- # Require bar to be installed with the foo flag turned on and
553
- # the baz flag turned off
554
+ -- Require bar to be installed with the foo flag turned on and
555
+ -- the baz flag turned off
554
556
constraints: bar +foo -baz
555
557
556
- # Require that bar NOT be present in the install plan. Note:
557
- # this is just syntax sugar for '> 1 && < 1', and is supported
558
- # by build-depends.
558
+ -- Require that bar NOT be present in the install plan. Note:
559
+ -- this is just syntax sugar for '> 1 && < 1', and is supported
560
+ -- by build-depends.
559
561
constraints: bar -none
560
562
561
563
A package can be specified multiple times in ``constraints ``, in
@@ -574,20 +576,20 @@ The following settings control the behavior of the dependency solver:
574
576
575
577
::
576
578
577
- # Require bar to be preinstalled in the global package database
578
- # (this does NOT include the Nix-local build global store.)
579
+ -- Require bar to be preinstalled in the global package database
580
+ -- (this does NOT include the Nix-local build global store.)
579
581
constraints: bar installed
580
582
581
- # Require the local source copy of bar to be used
582
- # (Note: By default, if we have a local package we will
583
- # automatically use it, so it generally not be necessary to
584
- # specify this)
583
+ -- Require the local source copy of bar to be used
584
+ -- (Note: By default, if we have a local package we will
585
+ -- automatically use it, so it generally not be necessary to
586
+ -- specify this)
585
587
constraints: bar source
586
588
587
- # Require that bar be solved with test suites and benchmarks enabled
588
- # (Note: By default, new-build configures the solver to make
589
- # a best-effort attempt to enable these stanzas, so this generally
590
- # should not be necessary.)
589
+ -- Require that bar be solved with test suites and benchmarks enabled
590
+ -- (Note: By default, new-build configures the solver to make
591
+ -- a best-effort attempt to enable these stanzas, so this generally
592
+ -- should not be necessary.)
591
593
constraints: bar test,
592
594
bar bench
593
595
@@ -643,11 +645,11 @@ The following settings control the behavior of the dependency solver:
643
645
644
646
::
645
647
646
- # Disregard upper bounds involving the dependencies on
647
- # packages bar, baz and quux
648
+ -- Disregard upper bounds involving the dependencies on
649
+ -- packages bar, baz and quux
648
650
allow-newer: bar, baz, quux
649
651
650
- # Disregard all upper bounds when dependency solving
652
+ -- Disregard all upper bounds when dependency solving
651
653
allow-newer: all
652
654
653
655
``allow-newer `` is often used in conjunction with a constraint (in
0 commit comments