Getting Crypto package imported

I used cabal to install Crypto and it seemed to work fine Here is what I see at the prompt when I try to import the module $ ghci GHCi, version 7.4.1: http://www.haskell.org/ghc/ :? for help Loading package ghc-prim ... linking ... done. Loading package integer-gmp ... linking ... done. Loading package base ... linking ... done. Prelude> :m +Crypto <no location info>: Could not find module `Crypto' It is not a module in the current program, or in any known package. Prelude> :m +Crypto.Hash <no location info>: Could not find module `Crypto.Hash' It is not a module in the current program, or in any known package. Prelude> :m +Crypto.Hash.Data <no location info>: Could not find module `Crypto.Data' It is not a module in the current program, or in any known package. Here is my package list. $ ghc-pkg list /var/lib/ghc/package.conf.d Cabal-1.14.0 array-0.4.0.0 base-4.5.0.0 bin-package-db-0.0.0.0 binary-0.5.1.0 bytestring-0.9.2.1 containers-0.4.2.1 deepseq-1.3.0.0 directory-1.1.0.2 extensible-exceptions-0.1.1.4 filepath-1.3.0.0 ghc-7.4.1 ghc-prim-0.2.0.0 haskell2010-1.1.0.1 haskell98-2.0.0.1 hoopl-3.8.7.3 hpc-0.5.1.1 integer-gmp-0.4.0.0 old-locale-1.0.0.4 old-time-1.1.0.0 pretty-1.1.1.0 process-1.1.0.1 rts-1.0 template-haskell-2.7.0.0 time-1.4 unix-2.5.1.0 /home/dlee/.ghc/i386-linux-7.4.1/package.conf.d Crypto-4.2.5.1 HUnit-1.3.0.0 QuickCheck-2.8.1 primitive-0.6.1.0 random-1.1 tf-random-0.5 transformers-0.4.3.0 I'd appreciate tips on how to troubleshoot what's going on. -- Dustin Lee qhfgva=rot13(dustin) ᕕ( ᐛ )ᕗ

On Tue, Dec 8, 2015 at 9:55 PM, Dustin Lee
Prelude> :m +Crypto
A glance at the main listing here: https://hackage.haskell.org/package/Crypto reveals that the module names are like Data.Digest.MD5 Codec.Encryption.AES So ":m +Data.Digest.MD5" should work. -- Kim-Ee

Ugg... Thanks. I was following a tutorial that used different import
names. I guess either the names changed since then or I grabbed a
different package.
In any case, thanks!
On Tue, Dec 8, 2015 at 8:10 AM, Kim-Ee Yeoh
On Tue, Dec 8, 2015 at 9:55 PM, Dustin Lee
wrote: Prelude> :m +Crypto
A glance at the main listing here:
https://hackage.haskell.org/package/Crypto
reveals that the module names are like
Data.Digest.MD5 Codec.Encryption.AES
So ":m +Data.Digest.MD5" should work.
-- Kim-Ee
_______________________________________________ Beginners mailing list Beginners@haskell.org http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners
-- Dustin Lee qhfgva=rot13(dustin) ᕕ( ᐛ )ᕗ

On Tue, Dec 8, 2015 at 10:33 PM, Dustin Lee
I was following a tutorial that used different import names. I guess either the names changed since then or I grabbed a different package.
Is the tutorial on the web? Perhaps you could contact the author to update it or add clarifying information? -- Kim-Ee
participants (2)
-
Dustin Lee
-
Kim-Ee Yeoh