diff --git a/Data/Array/Internal/Shape.hs b/Data/Array/Internal/Shape.hs index 6a74f0e..690af36 100644 --- a/Data/Array/Internal/Shape.hs +++ b/Data/Array/Internal/Shape.hs @@ -115,7 +115,7 @@ instance (KnownNat l, KnownNat h, (l+s+h) ~ s', Padded ps sh sh') => ----------------- class Permutation (is :: [Nat]) -instance (AllElem is (Count 0 is)) => Permutation is +instance (AllElem is (Count 0 is), AllElem (Count 0 is) is) => Permutation is type family Count (i :: Nat) (xs :: [Nat]) :: [Nat] where Count i '[] = '[]