mirror of
https://github.com/digital-asset/daml.git
synced 2024-11-09 15:37:05 +03:00
Fix bogus error when deriving Enum
for single-constructor enumeration (#18513)
* Add failing test case * Bump GHC_REV
This commit is contained in:
parent
865ef283b6
commit
3e18bba30b
@ -9,7 +9,7 @@ GHC_LIB_PATCHES = [
|
||||
]
|
||||
|
||||
GHC_REPO_URL = "https://github.com/digital-asset/ghc"
|
||||
GHC_REV = "bc8ba7ed6a1ec23f516971b2f19195d7025a021d"
|
||||
GHC_REV = "81f87342aa67307891ba47e7425ac62d0de05917"
|
||||
GHC_PATCHES = [
|
||||
]
|
||||
|
||||
|
12
compiler/damlc/tests/daml-test-files/UniqueEnum.daml
Normal file
12
compiler/damlc/tests/daml-test-files/UniqueEnum.daml
Normal 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)
|
Loading…
Reference in New Issue
Block a user