| Safe Haskell | Safe-Inferred |
|---|---|
| Language | Haskell2010 |
Data.Aztecs.Entity
Documentation
class FromEntity a where Source #
Methods
fromEntity :: Entity (EntityT a) -> a Source #
Instances
| EntityT a ~ '[a] => FromEntity a Source # | |
Defined in Data.Aztecs.Entity Methods fromEntity :: Entity (EntityT a) -> a Source # | |
| FromEntity (Entity ts) Source # | |
Defined in Data.Aztecs.Entity | |
| (FromEntity a, FromEntity b, EntityT (a :& b) ~ (a ': EntityT b)) => FromEntity (a :& b) Source # | |
Defined in Data.Aztecs.Entity | |
type family IntersectT (a :: [Type]) (b :: [Type]) :: [Type] where ... Source #
Equations
| IntersectT '[] b = '[] | |
| IntersectT (a ': as) b = If (ElemT a b) (a ': IntersectT as b) (IntersectT as b) |
class Intersect (a :: [Type]) (b :: [Type]) where Source #
Instances
| Intersect ('[] :: [Type]) b Source # | |
Defined in Data.Aztecs.Entity | |
| Intersect' (ElemT a bs) (a ': as) bs => Intersect (a ': as) bs Source # | |
Defined in Data.Aztecs.Entity | |
type family DifferenceT (a :: [Type]) (b :: [Type]) :: [Type] where ... Source #
Equations
| DifferenceT '[] b = '[] | |
| DifferenceT (a ': as) b = If (ElemT a b) (DifferenceT as b) (a ': DifferenceT as b) |
class Difference (a :: [Type]) (b :: [Type]) where Source #
Methods
difference :: Entity a -> Entity b -> Entity (DifferenceT a b) Source #
Instances
| Difference ('[] :: [Type]) b Source # | |
Defined in Data.Aztecs.Entity Methods difference :: Entity '[] -> Entity b -> Entity (DifferenceT '[] b) Source # | |
| Difference' (ElemT a bs) (a ': as) bs => Difference (a ': as) bs Source # | |
Defined in Data.Aztecs.Entity Methods difference :: Entity (a ': as) -> Entity bs -> Entity (DifferenceT (a ': as) bs) Source # | |