1
1
mirror of https://github.com/github/semantic.git synced 2024-11-29 02:44:36 +03:00

📝 the reflexive instance.

This commit is contained in:
Rob Rix 2019-10-08 15:41:02 -04:00
parent ea0a4c99b8
commit 579e5792e8
No known key found for this signature in database
GPG Key ID: F188A01508EA1CF7

View File

@ -45,6 +45,7 @@ type family (a :: Side) <> (b :: Side) :: Side where
class Element' (side :: Side) sub sup where class Element' (side :: Side) sub sup where
prj' :: sup a -> Maybe (sub a) prj' :: sup a -> Maybe (sub a)
-- | Membership is reflexive.
instance Element' 'Here t t where instance Element' 'Here t t where
prj' = Just prj' = Just