unisonweb/unison

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

Open

#1,443 建立於 2020年4月20日

在 GitHub 查看
 (0 留言) (0 反應) (0 負責人)Haskell (6,624 star) (304 fork)batch import
help wantedtech debt

描述

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.

貢獻者指南