mirror of
https://github.com/github/semantic.git
synced 2024-11-29 02:44:36 +03:00
Define a type family computing boolean or.
This commit is contained in:
parent
f613113dda
commit
c45b96f577
@ -156,6 +156,12 @@ instance GToTag U1 where
|
||||
class Element sub sup where
|
||||
prj :: sup a -> Maybe (sub a)
|
||||
|
||||
|
||||
type family a || b where
|
||||
'True || _ = 'True
|
||||
_ || 'True = 'True
|
||||
_ || _ = 'False
|
||||
|
||||
instance {-# OVERLAPPABLE #-}
|
||||
Element t t where
|
||||
prj = Just
|
||||
|
Loading…
Reference in New Issue
Block a user