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

📝 Prj.

This commit is contained in:
Rob Rix 2019-10-08 15:35:07 -04:00
parent 3051c8cace
commit 711ec1957d
No known key found for this signature in database
GPG Key ID: F188A01508EA1CF7

View File

@ -16,6 +16,7 @@ instance (Element' side sub sup, side ~ Find sub sup) => Element sub sup where
prj = prj' @side
-- | A pattern synonym to conveniently project out matching elements.
pattern Prj :: Element sub sup => sub a -> sup a
pattern Prj sub <- (prj -> Just sub)