Skip to content

Commit

Permalink
Document internal library syntax changes
Browse files Browse the repository at this point in the history
As of cabal-version: 3.4 and higher, it's necessary to use a different
syntax to depend on internal libraries than previous versions. Document
this change in a note block in the Internal Libraries section.

See: #7565
  • Loading branch information
chowells79 authored and mergify[bot] committed Nov 7, 2022
1 parent 9241cb4 commit aab93af
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions doc/cabal-package.rst
Original file line number Diff line number Diff line change
Expand Up @@ -999,6 +999,11 @@ a real-world use case:

default-language: Haskell2010

.. note::
For packages using ``cabal-version: 3.4`` or higher, the syntax to
specify an internal library in a ``build-depends:`` section is
``package-name:internal-library-name``.

**Multiple public libraries**

Cabal 3.0 and later support exposing multiple libraries from a single package
Expand Down

0 comments on commit aab93af

Please sign in to comment.