2015-10-09 2 views
5

Attualmente sto usando ihaskell per informazioni su alcune librerie. IHaskell è ancora pericolosa, e non posso fare:Esiste un comando dei due punti ghci per nascondere un pacchetto?

-- 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 

Senza "PackageImports", ricevo un messaggio di errore:

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

La mia domanda è: esiste un comando due punti all'interno ghci che permettesse io per nascondere il pacchetto di criptonite?

risposta

6

Sì.

:set -hide-package cryptonite 
+0

Grazie, purtroppo non è ancora implementato da iHaskell – dsign