Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
C
Cabal
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Requirements
Requirements
List
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Operations
Operations
Environments
Packages & Registries
Packages & Registries
Package Registry
Container Registry
Analytics
Analytics
CI / CD
Insights
Issue
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Jobs
Commits
Open sidebar
Glasgow Haskell Compiler
Packages
Cabal
Commits
b9bd08e5
Commit
b9bd08e5
authored
Aug 06, 2018
by
George Wilson
Committed by
Herbert Valerio Riedel
Aug 06, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update outdated references to cabal HEAD in nix-style-local-build docs (#5498)
[ci skip]
parent
26938a59
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
5 deletions
+4
-5
Cabal/doc/nix-local-build.rst
Cabal/doc/nix-local-build.rst
+4
-5
No files found.
Cabal/doc/nix-local-build.rst
View file @
b9bd08e5
...
...
@@ -45,8 +45,7 @@ local changes, they can be placed in ``cabal.project.local`` (which
should
not
be
checked
in
.)
Then
,
to
build
every
component
of
every
package
,
from
the
top
-
level
directory
,
run
the
command
:
(
Warning
:
cabal
-
install
-
1.24
does
NOT
have
this
behavior
;
you
will
need
to
upgrade
to
HEAD
.)
directory
,
run
the
command
:
(
using
cabal
-
install
-
2.0
or
greater
.)
::
...
...
@@ -152,7 +151,7 @@ applied to *local* packages, so that adding a flag to
``
cabal
new
-
build
``
doesn
't necessitate a rebuild of *every* transitive
dependency in the global package store.
In cabal-install
HEAD
, Nix-style local builds also take advantage of a
In cabal-install
2.0 and above
, Nix-style local builds also take advantage of a
new Cabal library feature, `per-component
builds <https://github.com/ezyang/ghc-proposals/blob/master/proposals/0000-componentized-cabal.rst>`__,
where each component of a package is configured and built separately.
...
...
@@ -179,7 +178,7 @@ version of cabal-install:
executable or test suite named ``pexe``, it would be located at
``dist-newstyle/build/p-0.1/build/pexe/pexe``.
- In cabal-install
HEAD
, the dist directory for a package ``p-0.1``
- In cabal-install
-2.0 and above
, the dist directory for a package ``p-0.1``
defining a library built with GHC 8.0.1 on 64-bit Linux is
``dist-newstyle/build/x86_64-linux/ghc-8.0.1/p-0.1``. When
per-component builds are enabled (any non-Custom package), a
...
...
@@ -190,7 +189,7 @@ version of cabal-install:
``dist-newstyle/build/x86_64-linux/ghc-8.0.1/p-0.1/c/pexe/build/pexe/pexe``
(you can see why we want this to be an implementation detail!)
The paths are a bit longer in
HEAD
but the benefit is that you can
The paths are a bit longer in
2.0 and above
but the benefit is that you can
transparently have multiple builds with different versions of GHC. We
plan to add the ability to create aliases for certain build
configurations, and more convenient paths to access particularly useful
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment