Christopher King
Christopher King

Reputation: 10961

How does one search for Haskell modules (not packages)?

Does one know how search for a haskell module? For example, if were to type:

$> hadoodledoodledu Control.Concurrent.Threads

It would return:

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

It would be best if it could search my local cabal repo, but if that is impossible, that is okay.

Upvotes: 5

Views: 87

Answers (2)

vek
vek

Reputation: 1543

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

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

Upvotes: 4

asm
asm

Reputation: 8898

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

Upvotes: 1

Related Questions