Skip to content

Commit 19d2844

Browse files
authored
Merge branch 'main' into PreferHash
2 parents d31376a + 79a134f commit 19d2844

47 files changed

Lines changed: 1522 additions & 625 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.ghci

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
:set -isrc -itest -idist/build/autogen -DTEST -optP-include -optPdist/build/autogen/cabal_macros.h
1+
:set -XHaskell2010 -Wredundant-constraints -fno-warn-incomplete-uni-patterns -DTEST -isrc -itest -i./dist-newstyle/build/x86_64-linux/ghc-9.6.2/hpack-0.36.0/build/autogen

.gitattributes

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/*.cabal linguist-generated=true

.github/workflows/build.yml

Lines changed: 18 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
name: build
22

3+
concurrency:
4+
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
5+
cancel-in-progress: true
6+
37
on:
48
push:
59
branches:
@@ -20,30 +24,25 @@ jobs:
2024
os:
2125
- ubuntu-latest
2226
ghc:
23-
- '8.2'
24-
- '8.4'
25-
- '8.6'
2627
- '8.8'
2728
- '8.10'
2829
- '9.0'
30+
- '9.2'
31+
- '9.4'
32+
- '9.6'
2933
include:
30-
- os: macos-latest
31-
ghc: '9.0'
34+
- os: macos-12
35+
ghc: system
3236
- os: windows-latest
33-
ghc: '8.10'
37+
ghc: '9.2'
3438
steps:
35-
- uses: actions/checkout@v2
36-
- uses: haskell/actions/setup@v1
39+
- uses: actions/checkout@v3
40+
- uses: hspec/setup-haskell@v1
3741
with:
3842
ghc-version: ${{ matrix.ghc }}
39-
40-
- uses: actions/cache@v2
41-
with:
42-
key: ${{ runner.os }}-${{ matrix.ghc }}-${{ github.sha }}
43-
path: ~/.cabal/store
44-
restore-keys: ${{ runner.os }}-${{ matrix.ghc }}-
45-
4643
- uses: sol/run-haskell-tests@v1
44+
with:
45+
caching: true
4746

4847
success:
4948
needs: build
@@ -53,3 +52,7 @@ jobs:
5352
steps:
5453
- run: false
5554
if: needs.build.result != 'success'
55+
56+
- uses: actions/checkout@v3
57+
- name: Check for trailing whitespace
58+
run: '! git grep -I "\s\+$"'

.travis-setup.sh

Lines changed: 0 additions & 35 deletions
This file was deleted.

.travis.yml

Lines changed: 0 additions & 79 deletions
This file was deleted.

CHANGELOG.md

Lines changed: 46 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,48 @@
1+
## Changes in 0.36.0
2+
- Don't infer `Paths_`-module with `spec-version: 0.36.0` or later
3+
4+
## Changes in 0.35.5
5+
- Add (undocumented) `list` command
6+
7+
## Changes in 0.35.4
8+
- Add `--canonical`, which can be used to produce canonical output instead of
9+
trying to produce minimal diffs
10+
- Avoid unnecessary writes on `--force` (see #555)
11+
- When an existing `.cabal` does not align fields then do not align fields in
12+
the generated `.cabal` file.
13+
- Fix a bug related to git conflict markers in existing `.cabal` files: When a
14+
`.cabal` file was essentially unchanged, but contained git conflict markers
15+
then `hpack` did not write a new `.cabal` file at all. To address this
16+
`hpack` now unconditionally writes a new `.cabal` file when the existing
17+
`.cabal` file contains any git conflict markers.
18+
19+
## Changes in 0.35.3
20+
- Depend on `crypton` instead of `cryptonite`
21+
22+
## Changes in 0.35.2
23+
- Add support for `ghc-shared-options`
24+
25+
## Changes in 0.35.1
26+
- Allow `Cabal-3.8.*`
27+
- Additions to internal API
28+
29+
## Changes in 0.35.0
30+
- Add support for `language` (thanks @mpilgrem)
31+
- Accept Cabal names for fields where Hpack and Cabal use different
32+
terminology, but still warn (e.g. accept `hs-source-dirs` as an alias for
33+
`source-dirs`)
34+
35+
## Changes in 0.34.7
36+
- Support `Cabal-3.6.*`
37+
- Make sure that verbatim `import` fields are rendered at the beginning of
38+
a section (see #486)
39+
40+
## Changes in 0.34.6
41+
- Add `Paths_` module to `autogen-modules` when `cabal-version >= 2`
42+
43+
## Changes in 0.34.5
44+
- Compatibility with `aeson-2.*`
45+
146
## Changes in 0.34.4
247
- Render `default-extensions` / `other-extensions` line-separated
348
- Compatibility with `Cabal-3.4.0.0`
@@ -8,7 +53,7 @@
853
- Reject empty `then` / `else` sections (see #362)
954
- Omit conditionals that are always `false` from generated `.cabal` file
1055
(see #404)
11-
- Infer correct `cabal-version` when `Path_` is used with `RebindableSyntax`
56+
- Infer correct `cabal-version` when `Paths_` is used with `RebindableSyntax`
1257
and `OverloadedStrings` or `OverloadedLists` (see #400)
1358
- Do not use indentation from any existing `.cabal` file if it is invalid
1459
(e.g. `0`) (fixes #252)

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Copyright (c) 2014-2018 Simon Hengel <sol@typeful.net>
1+
Copyright (c) 2014-2023 Simon Hengel <sol@typeful.net>
22

33
Permission is hereby granted, free of charge, to any person obtaining a copy
44
of this software and associated documentation files (the "Software"), to deal

0 commit comments

Comments
 (0)