diff options
author | Alexander Foremny <aforemny@posteo.de> | 2024-03-21 05:35:00 +0100 |
---|---|---|
committer | Alexander Foremny <aforemny@posteo.de> | 2024-03-25 07:45:59 +0100 |
commit | f83b424bf70b7b14b0268aeeafe1b3483fced49f (patch) | |
tree | 348a60e815f4bee492f58dea903ebc380029d61f /app/History.hs | |
parent | fc0afaaa273f5b5d3696df87d70d5347a13bb9ac (diff) |
chore: Git -> Backend
Diffstat (limited to 'app/History.hs')
-rw-r--r-- | app/History.hs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/app/History.hs b/app/History.hs index d423907..c808400 100644 --- a/app/History.hs +++ b/app/History.hs @@ -7,13 +7,13 @@ module History ) where +import Backend qualified import Comment qualified as G import Control.Exception (Handler (..), catches) import Data.List.NonEmpty qualified as NE import Data.Maybe (catMaybes) import Data.Proxy (Proxy (Proxy)) import Exception qualified as E -import Git qualified import History.IssueEvents (IssueEvents (..)) import History.Issues (Issues (..)) import History.Plan (formulate, realise) @@ -24,15 +24,15 @@ import Parallel (parMapM) getIssues :: IO Issues getIssues = realise . (formulate Proxy) . NE.fromList - =<< Git.getCommitHashes Nothing (Just Git.WorkingTree) + =<< Backend.getCommitHashes Nothing (Just Backend.WorkingTree) getIssueEvents :: IO IssueEvents getIssueEvents = realise . (formulate Proxy) . NE.fromList - =<< Git.getCommitHashes Nothing (Just Git.WorkingTree) + =<< Backend.getCommitHashes Nothing (Just Backend.WorkingTree) -- | Get all issues in the given directory and file. -getIssuesOfFile :: Git.CommitHash -> FilePath -> IO [I.Issue] +getIssuesOfFile :: Backend.CommitHash -> FilePath -> IO [I.Issue] getIssuesOfFile commitHash filename = ( fmap catMaybes . parMapM (fromComment commitHash) =<< G.getComments commitHash filename |