diff options
author | Tom Smeding <tom@tomsmeding.com> | 2024-06-03 18:07:10 +0200 |
---|---|---|
committer | Tom Smeding <tom@tomsmeding.com> | 2024-06-03 18:07:10 +0200 |
commit | 0cde8fb6cf80f3606ece7b47981ff017eb90d00c (patch) | |
tree | 050bcff2a1eb3b9b5e6d85ae5d8540ac639127ac /src/Data/Array/Mixed | |
parent | 9ba958af12500c09170c1de7527d50a60ad58589 (diff) |
Introduce PermR type synonym
Diffstat (limited to 'src/Data/Array/Mixed')
-rw-r--r-- | src/Data/Array/Mixed/Permutation.hs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/Data/Array/Mixed/Permutation.hs b/src/Data/Array/Mixed/Permutation.hs index 6ff3bdc..e1e5c44 100644 --- a/src/Data/Array/Mixed/Permutation.hs +++ b/src/Data/Array/Mixed/Permutation.hs @@ -66,6 +66,9 @@ class KnownPerm l where makePerm :: Perm l instance KnownPerm '[] where makePerm = PNil instance (KnownNat n, KnownPerm l) => KnownPerm (n : l) where makePerm = natSing `PCons` makePerm +-- | Untyped permutations for ranked arrays +type PermR = [Int] + -- ** Applying permutations |