Skip to content

Commit b742678

Browse files
committed
docs: Update cabal path outputs
1 parent d1fc7dc commit b742678

2 files changed

Lines changed: 18 additions & 18 deletions

File tree

doc/cabal-commands.rst

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,7 @@ cabal preferences. It is very useful when you are e.g. first configuring
267267

268268
.. option:: --config-file=PATH
269269

270-
Specify config file path. (default: ``~/.cabal/config``).
270+
Specify config file path. (default: ``~/.config/cabal/config``).
271271

272272
.. option:: -f, --force
273273

@@ -739,12 +739,12 @@ installed binaries, and so on.
739739
compiler-flavour: ghc
740740
compiler-id: ghc-9.8.2
741741
compiler-path: /home/alice/.ghcup/bin/ghc
742-
cache-home: /home/alice/.cabal
743-
remote-repo-cache: /home/alice/.cabal/packages
744-
logs-dir: /home/alice/.cabal/logs
745-
store-dir: /home/alice/.cabal/store
746-
config-file: /home/alice/.cabal/config
747-
installdir: /home/alice/.cabal/bin
742+
cache-home: /home/alice/.cache/cabal
743+
remote-repo-cache: /home/alice/.cache/cabal/packages
744+
logs-dir: /home/alice/.cache/cabal/logs
745+
store-dir: /home/alice/.cache/cabal/store
746+
config-file: /home/alice/.config/cabal/config
747+
installdir: /home/alice/.cache/cabal/bin
748748

749749
Or using the json output:
750750

@@ -755,18 +755,18 @@ Or using the json output:
755755
.. code-block:: json
756756
757757
{
758-
"cabal-version": "3.13.0.0",
758+
"cabal-version": "3.14.1.0",
759759
"compiler": {
760760
"flavour": "ghc",
761761
"id": "ghc-9.8.2",
762762
"path": "/home/alice/.ghcup/bin/ghc"
763763
},
764-
"cache-home": "/home/alice/.cabal",
765-
"remote-repo-cache": "/home/alice/.cabal/packages",
766-
"logs-dir": "/home/alice/.cabal/logs",
767-
"store-dir": "/home/alice/.cabal/store",
768-
"config-file": "/home/alice/.cabal/config",
769-
"installdir": "/home/alice/.cabal/bin"
764+
"cache-home": "/home/alice/.cache/cabal",
765+
"remote-repo-cache": "/home/alice/.cache/cabal/packages",
766+
"logs-dir": "/home/alice/.cache/cabal/logs",
767+
"store-dir": "/home/alice/.cache/cabal/store",
768+
"config-file": "/home/alice/.config/cabal/config",
769+
"installdir": "/home/alice/.cache/cabal/bin"
770770
}
771771
772772
If ``cabal path`` is passed a single option naming a path, then that
@@ -775,7 +775,7 @@ path will be printed *without* any label:
775775
::
776776

777777
$ cabal path --installdir
778-
/home/alice/.cabal/bin
778+
/home/alice/.cache/cabal/bin
779779

780780
While this interface is intended to be used for scripting, it is an experimental command.
781781
Scripting example:

doc/cabal-project-description-file.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1851,7 +1851,7 @@ Advanced global configuration options
18511851
--remote-repo-cache=DIR
18521852
:synopsis: Location of packages cache.
18531853

1854-
:default: ``~/.cabal/packages``
1854+
:default: ``~/.cache/cabal/packages``
18551855

18561856
The location where packages downloaded from remote repositories will be
18571857
cached.
@@ -1863,7 +1863,7 @@ Advanced global configuration options
18631863
--logs-dir=DIR
18641864
:synopsis: Directory to store build logs.
18651865

1866-
:default: ``~/.cabal/logs``
1866+
:default: ``~/.cache/cabal/logs``
18671867

18681868
:strike:`The location where build logs for packages are stored.`
18691869
Not implemented yet.
@@ -1874,7 +1874,7 @@ Advanced global configuration options
18741874
--build-summary=TEMPLATE
18751875
:synopsis: Build summaries location.
18761876

1877-
:default: ``~/.cabal/logs/build.log``
1877+
:default: ``~/.cache/cabal/logs/build.log``
18781878

18791879
:strike:`The file to save build summaries.` Not implemented yet.
18801880

0 commit comments

Comments
 (0)