[fix] Try to make the error message more understandable (maybe).

This commit is contained in:
Yamada Ryo 2023-09-14 15:01:01 +09:00
parent d1ce1cf474
commit 4f6d65b82e
No known key found for this signature in database
GPG Key ID: AAE3C7A542B02DBF
2 changed files with 2 additions and 2 deletions

View File

@ -124,4 +124,4 @@ type family IsMember (f :: Instruction) fs where
IsMember f (_ ': fs) = IsMember f fs
IsMember _ '[] = 'False
type Member u f fs = (IsMember f fs ~ 'True, HasMembership u f fs)
type Member u f fs = (HasMembership u f fs, IsMember f fs ~ 'True)

View File

@ -131,4 +131,4 @@ type family IsMemberH (h :: Signature) hs where
IsMemberH h (_ ': hs) = IsMemberH h hs
IsMemberH _ '[] = 'False
type MemberH u h hs = (IsMemberH h hs ~ 'True, HasMembershipH u h hs)
type MemberH u h hs = (HasMembershipH u h hs, IsMemberH h hs ~ 'True)