Skip to content

Commit 46d6d61

Browse files
Merge branch 'master' into string
2 parents 4a10f09 + 7d03180 commit 46d6d61

Some content is hidden

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

50 files changed

+2007
-1335
lines changed

.github/workflows/Cabal-Linux.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
runs-on: ubuntu-latest
1919
strategy:
2020
matrix:
21-
ghc: [ "8.10", "8.6" ]
21+
ghc: [ "9.0", "8.8" ]
2222
steps:
2323

2424
- name: "Git checkout"
@@ -62,9 +62,9 @@ jobs:
6262
run: cabal v2-test $cabalConfig
6363

6464
- name: "Haddock"
65-
if: ${{ matrix.ghc == '8.10' }}
65+
if: ${{ matrix.ghc == '9.0' }}
6666
run: cabal v2-haddock $cabalConfig
6767

6868
- name: "Source distribution file"
69-
if: ${{ matrix.ghc == '8.10' }}
69+
if: ${{ matrix.ghc == '9.0' }}
7070
run: cabal v2-sdist

.github/workflows/Cabal-macOS.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,11 @@ jobs:
1515

1616
build10:
1717
name: "GHC"
18-
runs-on: macOS-latest
18+
runs-on: macos-latest
1919
strategy:
2020
matrix:
2121
# It is dev env, so trying to stick to last GHC.
22-
ghc: [ "8.10" ]
22+
ghc: [ "9.0" ]
2323
steps:
2424

2525
- name: "Git checkout"

.github/workflows/On-Release-Cabal-Linux.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
strategy:
1717
matrix:
1818
# Since CI by default tests boundary GHCs, test middle versions of GHCs
19-
ghc: [ "8.8" ]
19+
ghc: [ "9.0" ]
2020
steps:
2121
- name: "Git checkout"
2222
uses: actions/checkout@v2

ChangeLog.md

Lines changed: 39 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,45 @@
11

22
# ChangeLog
33

4-
## [(diff)](https://github.com/haskell-nix/hnix/compare/0.13.1...master#files_bucket) WIP
4+
## [(diff)](https://github.com/haskell-nix/hnix/compare/0.14.0...0.15.0#files_bucket) 0.15.0
5+
6+
Partial log (for now):
7+
8+
* Breaking:
9+
10+
* `Nix.Expr.Shorthands`:
11+
* `inherit{,From}`: dropped second argument as irrelevant ([report](https://github.com/haskell-nix/hnix/issues/326)).
12+
* `mkAssert`: fixed ([report](https://github.com/haskell-nix/hnix/issues/969)).
13+
* fx presedence between the operators:
14+
15+
```haskell
16+
(@@), (@.), (@./), ($==), ($!=), ($<), ($<=), ($>), ($>=), ($&&), ($||), ($->), ($//), ($+), ($-), ($*), ($/), ($++), (==>)
17+
```
18+
19+
Now these shorthands can be used without sectioning & so represent the Nix expressions one to one.
20+
21+
```haskell
22+
nix = " a/b // c/def // <g> < def/d"
23+
hask = mkRelPath "a/b" $// mkRelPath "c/def" $// mkEnvPath "g" $< mkRelPath "def/d"
24+
```
25+
26+
* Additional
27+
* `Nix.Expr.Shorthands`:
28+
* `mkOper{,2}` entered deprecation, superceeded by new name `mkOp{,2}`.
29+
* `mkBinop` entered deprecation, supeceeded by new name `mkBinop`.
30+
* added `@.<|>` for Nix language `s.x or y` expession.
31+
* add `mkNeg` number negation.
32+
33+
34+
## [(diff)](https://github.com/haskell-nix/hnix/compare/0.13.1...0.14.0#files_bucket) 0.14.0 (2021-07-08)
35+
36+
* GHC 9.0 support.
37+
38+
* HNix switched to pre-0.9 style of log (aka "no log"). We temporarily stopped producing log, choosing effectiveness over writing about it.
39+
40+
* All changes seem trivial (from the inside). There is no changes in `Nix.Expr.Shorthands` module. Would there be difficulties in migration - please write to us - we would tackle & solve it togather.
41+
42+
A partial log:
543

644
* Breaking:
745

default.nix

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@
9393
# , nixos-20.03 # Last stable release, gets almost no updates to recipes, gets only required backports
9494
# ...
9595
# }
96-
, rev ? "65d6153aec85c8cb46023f0a7248628f423ca4ee"
96+
, rev ? "20887e4bbfdae3aed6bfa1f53ddf138ee325515e"
9797

9898
, pkgs ?
9999
if builtins.compareVersions builtins.nixVersion "2.0" > 0
@@ -192,6 +192,8 @@ let
192192

193193
semialign = super.semialign_1_2;
194194
relude = super.relude_1_0_0_1;
195+
hnix-store-core = super.hnix-store-core_0_5_0_0;
196+
hnix-store-remote = super.hnix-store-remote_0_5_0_0;
195197

196198
};
197199

hnix.cabal

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
cabal-version: 2.2
22
name: hnix
3-
version: 0.13.1
3+
version: 0.14.0.1
44
synopsis: Haskell implementation of the Nix language
55
description: Haskell implementation of the Nix language.
66
category: System, Data, Nix
@@ -410,6 +410,7 @@ library
410410
, base16-bytestring >= 0.1.1 && < 1.1
411411
, binary >= 0.8.5 && < 0.9
412412
, bytestring >= 0.10.8 && < 0.12
413+
, cryptonite
413414
, comonad >= 5.0.4 && < 5.1
414415
, containers >= 0.5.11.0 && < 0.7
415416
, data-fix >= 0.3.0 && < 0.4
@@ -422,8 +423,8 @@ library
422423
, gitrev >= 1.1.0 && < 1.4
423424
, hashable >= 1.2.5 && < 1.4
424425
, hashing >= 0.1.0 && < 0.2
425-
, hnix-store-core >= 0.4.0 && < 0.5
426-
, hnix-store-remote >= 0.4.0 && < 0.5
426+
, hnix-store-core >= 0.5.0 && < 0.6
427+
, hnix-store-remote >= 0.5.0 && < 0.6
427428
, http-client >= 0.5.14 && < 0.6 || >= 0.6.4 && < 0.8
428429
, http-client-tls >= 0.3.5 && < 0.4
429430
, http-types >= 0.12.2 && < 0.13

0 commit comments

Comments
 (0)