unisonweb/unison

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

Open

#1 443 ouverte le 20 avr. 2020

Voir sur GitHub
 (0 commentaires) (0 réactions) (0 assignés)Haskell (304 forks)batch import
help wantedtech debt

Métriques du dépôt

Stars
 (6 624 stars)
Métriques de merge PR
 (Merge moyen 10j 2h) (5 PRs mergées en 30 j)

Description

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.

Guide contributeur