mirror of
https://github.com/github/semantic.git
synced 2024-12-26 08:25:19 +03:00
📝 Element'.
This commit is contained in:
parent
acbb1e7cd5
commit
ea0a4c99b8
@ -41,6 +41,7 @@ type family (a :: Side) <> (b :: Side) :: Side where
|
||||
'None <> b = b
|
||||
a <> _ = a
|
||||
|
||||
-- | Helper to project elements out of the matching portion of a tree.
|
||||
class Element' (side :: Side) sub sup where
|
||||
prj' :: sup a -> Maybe (sub a)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user