1
1
mirror of https://github.com/github/semantic.git synced 2024-12-26 00:12:29 +03:00

📝 the right-recursive instance.

This commit is contained in:
Rob Rix 2019-10-08 15:41:16 -04:00
parent 5242e394df
commit 5d4317031a
No known key found for this signature in database
GPG Key ID: F188A01508EA1CF7

View File

@ -55,6 +55,7 @@ instance Element t l
prj' (L1 l) = prj l
prj' _ = Nothing
-- | Membership on the right.
instance Element t r
=> Element' 'R t (l :+: r) where
prj' (R1 r) = prj r