Skip to content

Commit

Permalink
Merge pull request #12 from tomsmeding/fix-permutation
Browse files Browse the repository at this point in the history
Modify Permutation to only allow actual permutations
  • Loading branch information
augustss authored Dec 20, 2024
2 parents 9717153 + 4a8aaa4 commit de089f6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Data/Array/Internal/Shape.hs
Original file line number Diff line number Diff line change
Expand Up @@ -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 '[] = '[]
Expand Down

0 comments on commit de089f6

Please sign in to comment.