Is there a ghci colon-command command to hide the package?

I am currently using ihaskell to learn about some libraries. IHaskell is still dangerous, and I cannot do this:

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

Without "PackageImports", an error message appears:

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

My question is: is there a colon command inside ghci that will allow me to hide the kryptonite package?

+5
source share
1 answer

Yes.

 :set -hide-package cryptonite 
+6
source

Source: https://habr.com/ru/post/1233364/


All Articles