0

我想洗牌字符串字符,我在 Data.Random.Extras 中找到了“洗牌”功能。但是当我尝试导入它时,我收到错误消息:

*Main> import Data.Random

<no location info>:
    Could not find module `Data.Random':
      Use -v to see a list of the files searched for.

我怎样才能导入这个包?或者也许还有另一种方法来洗牌字符串字符?

4

1 回答 1

6

这个包不附带 Haskell,需要安装。

你以前用过cabal吗?您可以使用安装新软件包

cabal install random-extras
于 2012-10-29T11:00:43.037 回答