【问题标题】:How does one search for Haskell modules (not packages)?如何搜索 Haskell 模块(不是包)?
【发布时间】:2014-03-17 23:40:51
【问题描述】:

有人知道如何搜索haskell 模块吗?例如,如果要输入:

$> hadoodledoodledu Control.Concurrent.Threads

它会返回:

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

最好能搜索我当地的阴谋集团仓库,但如果不可能,那也没关系。

【问题讨论】:

    标签: haskell package-managers


    【解决方案1】:

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

    如果您在 cabal 中启用文档,您可以在 ~/.cabal/share/doc/index.html 中找到所有已安装和记录的模块的列表

    【讨论】:

    • 刚才给了$ ghc-pkg find-module Control.Concurrent.Threads /var/lib/ghc/package.conf.d /home/theking/.ghc/i386-linux-7.6.3/package.conf.d
    • @PyRulez 这意味着在两个配置目录中都找不到它。
    • @PyRulez 你可以试试$ ghc-pkg find-module Control.Concurrent.*
    【解决方案2】:

    hayoo 会执行此操作,但我不确定您是否可以将其配置为在本地工作。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2014-03-02
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多