Skip to content

Commit 91262e7

Browse files
quasicomputationaljwiegley
authored andcommitted
Allow most recent versions of dependencies.
The only actual breaking change affecting `hnix` is `these` splitting into three packages and renaming some things. Otherwise, as the package should work fine with either the newer or older versions, I have left the previous bounds in place and added the new ones disjunctively. This will help somewhat with #494.
1 parent c03a40a commit 91262e7

File tree

2 files changed

+17
-15
lines changed

2 files changed

+17
-15
lines changed

hnix.cabal

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -497,39 +497,41 @@ library
497497
, contravariant >= 1.5 && < 1.6
498498
, data-fix >= 0.2.0 && < 0.3
499499
, deepseq >=1.4.2 && <1.5
500-
, dependent-sum >= 0.4 && < 0.5
500+
, dependent-sum >= 0.4 && < 0.5 || >= 0.6.2.0 && < 0.7
501501
, deriving-compat >=0.3 && <0.6
502502
, directory >= 1.3.1 && < 1.4
503503
, exceptions >= 0.10.0 && < 0.11
504504
, filepath >= 1.4.2 && < 1.5
505505
, free >= 5.1 && < 5.2
506506
, hashing >= 0.1.0 && < 0.2
507507
, hnix-store-core >= 0.1.0 && < 0.2
508-
, http-client >= 0.5.14 && < 0.6
508+
, http-client >= 0.5.14 && < 0.6 || >= 0.6.4 && < 0.7
509509
, http-client-tls >= 0.3.5 && < 0.4
510510
, http-types >= 0.12.2 && < 0.13
511511
, interpolate >= 0.2.0 && < 0.3
512512
, lens-family-th >= 0.5.0 && < 0.6
513-
, logict >= 0.6.0 && < 0.7
513+
, logict >= 0.6.0 && < 0.7 || >= 0.7.0.2 && < 0.8
514514
, megaparsec >=7.0 && <7.1
515515
, monad-control >= 1.0.2 && < 1.1
516516
, monadlist >= 0.0.2 && < 0.1
517517
, mtl >= 2.2.2 && < 2.3
518-
, optparse-applicative >= 0.14.3 && < 0.15
519-
, parser-combinators >= 1.0.1 && < 1.1
520-
, prettyprinter >= 1.2.1 && < 1.3
518+
, optparse-applicative >= 0.14.3 && < 0.15 || >= 0.15.0.0 && < 0.16
519+
, parser-combinators >= 1.0.1 && < 1.1 || >= 1.2.0 && < 1.3
520+
, prettyprinter >= 1.2.1 && < 1.3 || >= 1.3.0 && < 1.4
521521
, process >= 1.6.3 && < 1.7
522522
, ref-tf >= 0.4.0 && < 0.5
523523
, regex-tdfa >= 1.2.3 && < 1.3
524524
, regex-tdfa-text >= 1.0.0 && < 1.1
525525
, scientific >= 0.3.6 && < 0.4
526-
, semigroups >=0.18 && <0.19
526+
, semialign >= 1 && < 1.1
527+
, semialign-indexed >= 1 && < 1.1
528+
, semigroups >=0.18 && <0.19 || >= 0.19.1 && < 0.20
527529
, split >= 0.2.3 && < 0.3
528530
, syb >= 0.7 && < 0.8
529531
, template-haskell
530532
, text >= 1.2.3 && < 1.3
531-
, these >= 0.7.5 && < 0.8
532-
, time >= 1.8.0 && < 1.9
533+
, these >= 1.0.1 && < 1.1
534+
, time >= 1.8.0 && < 1.9 || >= 1.9.3 && < 1.10
533535
, transformers >= 0.5.5 && < 0.6
534536
, transformers-base >= 0.4.5 && < 0.5
535537
, unix >= 2.7.2 && < 2.8
@@ -562,12 +564,12 @@ library
562564
-- ghc-datasize
563565
if impl(ghcjs)
564566
build-depends:
565-
hashable >=1.2.4 && <1.3
567+
hashable >=1.2.4 && <1.3 || >= 1.3.0.0 && < 1.4
566568
else
567569
exposed-modules:
568570
Nix.Options.Parser
569571
build-depends:
570-
hashable >=1.2.5 && <1.3
572+
hashable >=1.2.5 && <1.3 || >= 1.3.0.0 && < 1.4
571573
, haskeline >= 0.7.4.2 && < 0.8
572574
, pretty-show >= 1.9.5 && < 1.10
573575
default-language: Haskell2010

src/Nix/Eval.hs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ import Control.Monad
1717
import Control.Monad.Fix
1818
import Control.Monad.Reader
1919
import Control.Monad.State.Strict
20-
import Data.Align.Key ( alignWithKey )
20+
import Data.Semialign.Indexed ( ialignWith )
2121
import Data.Either ( isRight )
2222
import Data.Fix ( Fix(Fix) )
2323
import Data.HashMap.Lazy ( HashMap )
@@ -385,9 +385,9 @@ buildArgument params arg = do
385385
Nothing -> id
386386
Just n -> M.insert n $ const $ defer (withScopes scope arg)
387387
loebM
388-
(inject $ M.mapMaybe id $ alignWithKey (assemble scope isVariadic)
389-
args
390-
(M.fromList s)
388+
(inject $ M.mapMaybe id $ ialignWith (assemble scope isVariadic)
389+
args
390+
(M.fromList s)
391391
)
392392
where
393393
assemble

0 commit comments

Comments
 (0)