remove GADT syntax from existential wrappers (#49)

This commit is contained in:
Evgeny Poberezkin
2021-02-26 18:17:29 +04:00
committed by Efim Poberezkin
parent 3a161e93ca
commit 51aab978bd
2 changed files with 2 additions and 4 deletions
+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