haskell-nix/hnix

Please, check & find superflous `coerce`

Aperta

#986 aperta il 14 ago 2021

 (1 commento) (0 reazioni) (0 assegnatari)Nix (116 fork)github user discovery
good first issuerefactoring

Metriche repository

Star
 (835 stelle)
Metriche merge PR
 (Nessuna PR mergiata in 30 g)

Descrizione

During work on type shifts, the coerce gets sprinkled over the code.

Eventually, when types line-up - some of the coerce sprinkled over the codebase become superfluous (Path -> Path & such).

There probably shouldn't be many of them, but also finding & removing them would make the code not only cleaner also reducing their number - prevents type inference problems during work.

Guida contributor