1
1
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:
Rob Rix 2019-09-24 12:19:47 -04:00
parent f613113dda
commit c45b96f577
No known key found for this signature in database
GPG Key ID: F188A01508EA1CF7

View File

@ -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