Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## Changes in UNRELEASED
- Add new section: `foreign-libraries`, for Cabal 2.0's `foreign-library`
stanzas (see #518)

## Changes in 0.40.0
- Infer `cabal-version: 3.4` (rather than `cabal-version: 3.0`) when a section
has sublibraries as dependencies. Make the same inference when custom setup
Expand Down
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,8 @@ library:
| `executable` | `executable <package-name>` | | Shortcut for `executables: { package-name: ... }` | | `0.18.0` |
| `tests` | `test-suite <name>` | | Map from test name to test (see [Test fields](#test-fields)) | | |
| `benchmarks` | `benchmark <name>` | | Map from benchmark name to benchmark (see [Benchmark fields](#benchmark-fields)) | | |
| `foreign-libraries` | `foreign-library <name>` | | Map from foreign library name to foreign library (see [Foreign library fields](#foreign-library-fields)) | | UNRELEASED |
| `foreign-library` | `foreign-library <name>` | | Shortcut for `foreign-libraries: { package-name: ... }` | | UNRELEASED |
| `defaults` | | | See [Defaults](#defaults), may be a list | | |

#### cabal-version
Expand Down Expand Up @@ -357,6 +359,14 @@ This is done to allow compatibility with a wider range of `Cabal` versions.
| `other-modules` | · | All modules in `source-dirs` less `main` less any modules mentioned in `when` | |
| `generated-other-modules` | | | Added to `other-modules` and `autogen-modules`. Since `0.23.0`.

#### Foreign library fields

| Hpack | Cabal | Default | Notes |
| --- | --- | --- | --- |
| `lib-version-info` | . | | |
| `other-modules` | · | All modules in `source-dirs` less any modules mentioned in `when` | |
| `generated-other-modules` | | | Added to `other-modules` and `autogen-modules`.|

#### Flags

| Hpack | Cabal | Default | Notes |
Expand Down
Loading
Loading