8

At present I'm using ihaskell to learn about some libraries. IHaskell is still hazardous, and I can not do:

-- 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", I get an error message:

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 would allow me to hide the cryptonite package?

dsign
  • 12,340
  • 6
  • 59
  • 82

1 Answers1

7

Yes.

:set -hide-package cryptonite
Reid Barton
  • 14,951
  • 3
  • 39
  • 49