From 236316221dc1fe4152028d7720b68a437bb3ea52 Mon Sep 17 00:00:00 2001 From: Alexander Foremny Date: Tue, 17 Oct 2023 09:14:13 +0200 Subject: refactor include,exclude from simple filters --- app/History.hs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'app/History.hs') diff --git a/app/History.hs b/app/History.hs index 4f62610..d2e6a46 100644 --- a/app/History.hs +++ b/app/History.hs @@ -12,7 +12,7 @@ import Data.Text.Encoding (decodeUtf8) import GHC.Generics (Generic) import Git qualified import Issue (Issue (..), fromMatch, id) -import Issue.Filter (Filter, applyFilter) +import Issue.Filter (Filter, applyFilters) import Issue.Sort (Sort, applySort) import Issue.Tag qualified as I import Parallel (parMapM) @@ -54,7 +54,7 @@ listIssues sort filters paths = do commitInfoWorkingTree <- getCommitInfoWorkingTree paths let eventses = getEvents hashFirst issuesInitial (commitInfos ++ [commitInfoWorkingTree]) let issues = mapMaybe issueFromIssueEvents eventses - issuesFiltered = filter (applyFilter filters) issues + issuesFiltered = applyFilters filters issues issuesSorted = applySort sort issuesFiltered issuesWithinPaths = case paths of -- cgit v1.2.3