这是 stack.yaml 的部分内容:
packages:
- location:
git: https://github.com/TwitterFriends/lsh.git
commit: 57d57f4209e56f526c0eca023907015935c26071
extra-dep: true
我将包添加到Cabal文件中
尝试构建时出现错误
While constructing the BuildPlan the following exceptions were encountered:
-- While attempting to add dependency,
Could not find package lsh in known packages
我做错了什么?
当前项目在这里找到
packages
元素。尝试删除两个packages
并仅添加此内容:http://lpaste.net/6027187186263130112 现在它为我找到了lsh
包。另外,在此之前不要忘记执行stack clean
,有时可能会有所帮助。 - Shersh