unisonweb/unison

`manageLinks` in `HandleInput` should have a stronger type

Open

#1,443 opened on 2020年4月20日

GitHub で見る
 (0 comments) (0 reactions) (0 assignees)Haskell (304 forks)batch import
help wantedtech debt

Repository metrics

Stars
 (6,624 stars)
PR merge metrics
 (平均マージ 10d 2h) (30d で 5 merged PRs)

説明

The current type of this function is:

    manageLinks :: [(Path', NameSegment.HQSegment)]
                -> [HQ.HashQualified]
                -> (forall r. Ord r
                    => (r, Reference, Reference)
                    ->  Branch.Star r NameSegment
                    ->  Branch.Star r NameSegment)
                -> Action m (Either Event Input) v ()

Since it takes names rather than references, it has to parse those names. This is probably OK for now, but may run into strange corner cases later.

コントリビューターガイド