remove GADT syntax from existential wrappers (#49)

This commit is contained in:
Evgeny Poberezkin authored and Efim Poberezkin committed 2021-02-26 18:17:29 +04:00
1 parent 3a161e93ca
commit 51aab978bd
2 files changed
+2 -4

No files matched your search

+1 -2
View File
@@ -68,8 +68,7 @@ instance TestEquality SAParty where
testEquality SClient SClient = Just Refl
testEquality _ _ = Nothing
data ACmd where
ACmd :: SAParty p -> ACommand p -> ACmd
data ACmd = forall p. ACmd (SAParty p) (ACommand p)
deriving instance Show ACmd
+1 -2
View File
@@ -41,8 +41,7 @@ data SParty :: Party -> Type where
deriving instance Show (SParty a)
data Cmd where
Cmd :: SParty a -> Command a -> Cmd
data Cmd = forall a. Cmd (SParty a) (Command a)
deriving instance Show Cmd