隐藏包二进制-0.7.5.0?

时间:2015-09-11 08:03:08

标签: haskell haskell-stack

我收到此错误:

Could not find module ‘Data.Binary’
It is a member of the hidden package ‘binary-0.7.5.0@binar_IvYoLp9H6Xy3zEH13MmZwd’.

我用GHCi版本7.10.2在我的堆栈项目中导入Data.Binary

奇怪的是,如果我通过stack exec ghci执行GHCi,并且我无法通过堆栈安装较新版本的binary包,则不会出现这种情况,看起来:

D:\p>stack install binary
Setting codepage to UTF-8 (65001) to ensure correct output from GHC
NOTE: the install command is functionally equivalent to 'build --copy-bins'

D:\p>stack install binary-0.7.6.1
Setting codepage to UTF-8 (65001) to ensure correct output from GHC
NOTE: the install command is functionally equivalent to 'build --copy-bins'
Error parsing targets: Specified target version 0.7.6.1 for package binary does not match snapshot version 0.7.5.0

D:\p>stack install binary-0.7.5.0
Setting codepage to UTF-8 (65001) to ensure correct output from GHC
NOTE: the install command is functionally equivalent to 'build --copy-bins'

你会如何解决这个问题?

0 个答案:

没有答案