K
Size: a a a
K
AV
MK
AV
MK
AV
AV
AV
a
AV
AV
R
type family DeepSeq (x :: a) = (r :: a) | r -> x where
DeepSeq (f x) = DeepSeq f (DeepSeq x)
DeepSeq x = x
• Type family equation violates injectivity annotation.
Type variable ‘x’ cannot be inferred from the right-hand side.
In the type family equation:
forall a1 a2 (f :: a1 -> a2) (x :: a1).
DeepSeq (f x) = DeepSeq f (DeepSeq x)
OO
MK
MK
MK
к
type family DeepSeq (x :: a) = (r :: a) | r -> x where
DeepSeq (f x) = DeepSeq f (DeepSeq x)
DeepSeq x = x
• Type family equation violates injectivity annotation.
Type variable ‘x’ cannot be inferred from the right-hand side.
In the type family equation:
forall a1 a2 (f :: a1 -> a2) (x :: a1).
DeepSeq (f x) = DeepSeq f (DeepSeq x)
DI
it describe и shouldBeDI