3

Is there a way to use type signature searches on not just the current working set, but the entire history of a project?

The purpose would be to find and possibly recycle Haskell functions that were previously written and tested, but removed due to lack of use/need.

E Bro
  • 33
  • 5
  • Hoogle though Git history? Very unlikely. Hoogling though previous _package versions_, much more feasible. – leftaroundabout Aug 30 '17 at 23:25
  • 1
    Hoogle can take text files saying which functions are available. There is no restriction on those names being unique, so if you generated a suitable input file, Hoogle could certainly be used. – Neil Mitchell Sep 17 '17 at 16:48
  • @NeilMitchell So, thinking out loud here, a git hook that generated hoogle files off each new commit? Would there need to be some way to dedup function sigs that haven't changed? Or does hoogle handle that internally? – E Bro Sep 17 '17 at 19:51
  • Yep, a git hook could work. You would have to manually dedupe signatures, as you'd need to give each one a complete link (including the git SHA1). – Neil Mitchell Sep 20 '17 at 20:01

0 Answers0