Finding similar haskell functions from emacs and downloading their packages: Hoogle, intero, fzf

1 · Shane Mulligan · Nov. 30, 2019, 11 a.m.
Demonstration Make these functions 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 (defun my-intero-get-type () (interactive) (my-enable-intero) (let ((out (sh-notty "sed -z -e \"s/\\n/ /g\" -e \"s/ \\+/ /g\"" (sed "s/^[^:]\\+ :: //" (intero-get-type-at (beginning-of-thing 'sexp) (end-of-thing 'sexp)))))) (if (called-interactively-p 'any) (my/copy out) out))) (defun hs-download-packages-with-function-type (type) (interactive (list (my-intero-g...