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

📝 the left-recursive instance.

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

View File

@ -49,6 +49,7 @@ class Element' (side :: Side) sub sup where
instance Element' 'Here t t where instance Element' 'Here t t where
prj' = Just prj' = Just
-- | Membershp on the left.
instance Element t l instance Element t l
=> Element' 'L t (l :+: r) where => Element' 'L t (l :+: r) where
prj' (L1 l) = prj l prj' (L1 l) = prj l