Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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.

like image 840
PyRulez Avatar asked Mar 17 '14 23:03

PyRulez


2 Answers

$ 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

like image 151
Vektorweg Avatar answered Nov 15 '22 10:11

Vektorweg


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

like image 36
asm Avatar answered Nov 15 '22 08:11

asm