mirror of
https://github.com/simplex-chat/simplexmq.git
synced 2026-08-28 09:24:47 +00:00
remove GADT syntax from existential wrappers (#49)
This commit is contained in:
committed by
Efim Poberezkin
parent
3a161e93ca
commit
51aab978bd
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user