haskell-jp / beginners #19 at 2022-01-12 00:42:59 +0900

stack installでcryptoniteのインストールをしたのですが
Could not load module ‘Crypto.Hash’
It is a member of the hidden package ‘cryptonite-0.29’.
Perhaps you need to add ‘cryptonite’ to the build-depends in your .cabal file.
Use -v (or :set -v in ghci) to see a list of the files searched for.
|
4 | import Crypto.Hash
と出てしまい、ロードできません
初歩的な質問で申し訳ないのですが次に何をすれば良いのか教えてもらえないでしょうか?
cabalファイルがあるプロジェクトの中で使おうとしている、ということであれば
Perhaps you need to add ‘cryptonite’ to the build-depends in your .cabal file.
のとおりcabalファイルかpackage.yamlの依存パッケージの一覧にcryptoniteを追加してください。
その通りにしたら解決しました
ありがとうございます