How to search for Haskell modules (not packages)?

Do you know how to look for a haskell module? For example, if you type:

$> hadoodledoodledu Control.Concurrent.Threads

He will return:

concurrent-extras-0.3
concurrent-extras-0.4
bicameral-jacquard-loom-controller-4.2

It would be better if he could look for my local repository, but if that is not possible, that's fine.

+4
source share
2 answers

$ ghc-pkg find-module Control.Concurrent.Threads

If you include documentation in cabal, you can find a list of all installed and documented modules in ~/.cabal/share/doc/index.html

+4
source

hayoo will do this, but I'm not sure if you can configure it to work locally.

+1
source

Source: https://habr.com/ru/post/1532225/


All Articles