Fix bogus error when deriving Enum for single-constructor enumeration (#18513)

* Add failing test case

* Bump GHC_REV
This commit is contained in:
Moisés Ackerman 2024-02-28 12:35:05 +01:00 committed by GitHub
parent 865ef283b6
commit 3e18bba30b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 13 additions and 1 deletions

View File

@ -9,7 +9,7 @@ GHC_LIB_PATCHES = [
]
GHC_REPO_URL = "https://github.com/digital-asset/ghc"
GHC_REV = "bc8ba7ed6a1ec23f516971b2f19195d7025a021d"
GHC_REV = "81f87342aa67307891ba47e7425ac62d0de05917"
GHC_PATCHES = [
]

View File

@ -0,0 +1,12 @@
-- Copyright (c) 2024, Digital Asset (Switzerland) GmbH and/or its affiliates.
-- All rights reserved.
-- This tests that single-constructor enumerations work properly when deriving
-- all derivable typeclasses.
-- Regression test for https://github.com/digital-asset/daml/issues/18504
module UniqueEnum where
data MyEnum
= MyEnum
deriving (Eq, Ord, Enum, Bounded, Show)