【问题标题】:Is there a ghci colon-command to hide a package?是否有隐藏包的 ghci 冒号命令?
【发布时间】:2015-10-09 14:28:40
【问题描述】:

目前我正在使用 ihaskell 来了解一些库。 IHaskell 仍然很危险,我做不到:

-- This doesn't work:   ":ext PackageImports", the kernel hangs
-- This doesn't work:   "{-# LANGUAGE PackageImports #-}", the kernel hangs
import Codec.Crypto.RSA.Pure
import qualified "crypto-api" Crypto.Random                                         as CR
import           Control.Monad.CryptoRandom

如果没有“PackageImports”,我会收到一条错误消息:

Ambiguous interface for ‘Crypto.Random’: it was found in multiple packages: crypto-api-0.13.2 cryptonite-0.7

我的问题是,ghci 中是否有一个冒号命令可以让我隐藏cryptonite 包?

【问题讨论】:

    标签: haskell ihaskell


    【解决方案1】:

    是的。

    :set -hide-package cryptonite
    

    【讨论】:

    • 谢谢,遗憾的是 iHaskell 尚未实现
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2017-01-28
    • 1970-01-01
    • 2012-01-16
    • 2012-01-21
    • 1970-01-01
    • 1970-01-01
    • 2015-05-14
    相关资源
    最近更新 更多