mirror of
https://github.com/github/semantic.git
synced 2024-11-25 11:04:00 +03:00
📝 the reflexive instance.
This commit is contained in:
parent
ea0a4c99b8
commit
579e5792e8
@ -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
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user