diff options
author | Alexander Foremny <aforemny@posteo.de> | 2023-10-17 09:30:31 +0200 |
---|---|---|
committer | Alexander Foremny <aforemny@posteo.de> | 2023-10-17 09:30:31 +0200 |
commit | bb88dbe078a0f16c0626a2825fd9f4d6bc775875 (patch) | |
tree | 71fbc7323fe188829b9b327af022bd85cc154d4e /app/Issue | |
parent | 0d7cb474e6eb9a8bb5b6c9b1adf09b3b29760ff1 (diff) |
applySort -> applySorts
Diffstat (limited to 'app/Issue')
-rw-r--r-- | app/Issue/Sort.hs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/app/Issue/Sort.hs b/app/Issue/Sort.hs index 2195244..46f4a19 100644 --- a/app/Issue/Sort.hs +++ b/app/Issue/Sort.hs @@ -2,7 +2,7 @@ module Issue.Sort ( Sort, Order, SortBy, - applySort, + applySorts, sortArg, ) where @@ -48,8 +48,8 @@ sortArg = | "-@" `T.isPrefixOf` s = Just (Sort Desc (SortByTag (T.drop 2 s))) | otherwise = Nothing -applySort :: [Sort] -> [Issue] -> [Issue] -applySort cs = compose (defaultSort : cs) +applySorts :: [Sort] -> [Issue] -> [Issue] +applySorts cs = compose (defaultSort : cs) where compose :: [Sort] -> ([Issue] -> [Issue]) compose = foldr (.) id . map toSort |