Skip to content

Commit 8c8d728

Browse files
committed
Move to NonEmpty in dhall types
1 parent de7c6e3 commit 8c8d728

3 files changed

Lines changed: 4 additions & 3 deletions

File tree

flake.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@
5959
DHALL_PRELUDE = "${
6060
builtins.fetchGit {
6161
url = "https://github.com/dhall-lang/dhall-lang";
62-
rev = "e35f69d966f205fdc0d6a5e8d0209e7b600d90b3";
62+
rev = "25cf020ab307cb2d66826b0d1ddac8bc89241e27";
6363
}
6464
}/Prelude/package.dhall";
6565

types/v1/Metadata.dhall

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
let Map = (./Prelude.dhall).Map.Type
2+
let NonEmpty = (./Prelude.dhall).NonEmpty.Type
23

34
let Owner = ./Owner.dhall
45

@@ -14,7 +15,7 @@ let PublishedMetadata =
1415
{ hash : Sha256
1516
, bytes : Natural
1617
, publishedTime : ISO8601String
17-
, compilers : < Single : Version | Many : List Version >
18+
, compilers : NonEmpty Version
1819
}
1920

2021
let UnpublishedMetadata =

types/v1/Prelude.dhall

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
-- remote hosts in an offline environment (such as Nix in CI). DHALL_PRELUDE is
33
-- automatically set in your Nix shell, but if you are not using a Nix shell and
44
-- want to run this locally then the URL will be used instead.
5-
env:DHALL_PRELUDE ? https://prelude.dhall-lang.org/v19.0.0/package.dhall sha256:eb693342eb769f782174157eba9b5924cf8ac6793897fc36a31ccbd6f56dafe2
5+
env:DHALL_PRELUDE

0 commit comments

Comments
 (0)