Skip to content

Commit 78ca289

Browse files
MonoidMusicianGabriella439
authored andcommitted
Update standard version to 5.0.0 in Binary.hs (#771)
1 parent 6a70f13 commit 78ca289

File tree

5 files changed

+12
-12
lines changed

5 files changed

+12
-12
lines changed

dhall/Prelude/Monoid

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
https://raw.githubusercontent.com/dhall-lang/Prelude/a22da69657b9316a3c51ba0bf80c9d4024db3fce/Monoid sha256:c4ff4f04ce9d3b7b579ff2ac7fe00258d665c701f895493b73082b750b28553d
1+
https://raw.githubusercontent.com/dhall-lang/Prelude/a22da69657b9316a3c51ba0bf80c9d4024db3fce/Monoid sha256:b306524b2f7fedd7dad0d328990e0b6271d93d6f2fbe7156474b757f5d8de187

dhall/Prelude/package.dhall

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
https://raw.githubusercontent.com/dhall-lang/Prelude/e9c90396c02f9eb0fe66c00c544615cbfa068f34/package.dhall sha256:534e4a9e687ba74bfac71b30fc27aa269c0465087ef79bf483e876781602a454
1+
https://raw.githubusercontent.com/dhall-lang/Prelude/e9c90396c02f9eb0fe66c00c544615cbfa068f34/package.dhall sha256:26e13b153cb428366610110d4d8f0c135e22b20179d5478bb16b1b83b3f2ca13

dhall/src/Dhall/Binary.hs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -62,11 +62,11 @@ import qualified Options.Applicative
6262

6363
-- | Supported version strings
6464
data StandardVersion
65-
= V_4_0_0
66-
-- ^ Version "4.0.0"
65+
= V_5_0_0
66+
-- ^ Version "5.0.0"
6767

6868
defaultStandardVersion :: StandardVersion
69-
defaultStandardVersion = V_4_0_0
69+
defaultStandardVersion = V_5_0_0
7070

7171
parseStandardVersion :: Parser StandardVersion
7272
parseStandardVersion =
@@ -80,7 +80,7 @@ parseStandardVersion =
8080
readVersion = do
8181
string <- Options.Applicative.str
8282
case string :: Text of
83-
"4.0.0" -> return V_4_0_0
83+
"5.0.0" -> return V_5_0_0
8484
_ -> fail "Unsupported version"
8585

8686
{-| Convert a function applied to multiple arguments to the base function and
@@ -827,7 +827,7 @@ decodeWithVersion term = do
827827
fail ("Cannot decode the version from this decoded CBOR expression: " <> show term)
828828

829829
case version of
830-
"4.0.0" -> do
830+
"5.0.0" -> do
831831
return ()
832832
_ -> do
833833
fail ("This decoded version is not supported: " <> Data.Text.unpack version)
@@ -840,8 +840,8 @@ decodeWithVersion term = do
840840

841841
-- | Encode a Dhall expression using the specified `Version`
842842
encodeWithVersion :: StandardVersion -> Expr s Import -> Term
843-
encodeWithVersion V_4_0_0 expression =
844-
TList [ TString "4.0.0", encode expression ]
843+
encodeWithVersion V_5_0_0 expression =
844+
TList [ TString "5.0.0", encode expression ]
845845

846846
data DecodingFailure
847847
= CannotDecodeVersionString Term
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{ example0 =
2-
../data/fieldOrder/1.dhall sha256:4a7866b88389e18cf481b525544fd7903325252faf3a86c8fdc981298c788a9b
2+
../data/fieldOrder/1.dhall sha256:261b3aca810973f81175d19b16226aaa5e76df7ea51c5d45e890dd6cdc49abbd
33
, example1 =
4-
../data/fieldOrder/2.dhall sha256:4a7866b88389e18cf481b525544fd7903325252faf3a86c8fdc981298c788a9b
4+
../data/fieldOrder/2.dhall sha256:261b3aca810973f81175d19b16226aaa5e76df7ea51c5d45e890dd6cdc49abbd
55
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
./issue553A.dhall sha256:e2d014696fb7d773727ae5aa42dc20bbd2447ea82bcb5971ccbb7763906edace
1+
./issue553A.dhall sha256:250873549ddd262f27f3b197b2a2631fb569e7bdfe12446fc0912b4a2359a83e

0 commit comments

Comments
 (0)