2016-07-14 134 views

回答

14

documentation for the stack.yamlpackages section給出了涉及更復雜的包位置的示例。

packages: 
- location: . 
- location: dir1/dir2 
- location: https://example.com/foo/bar/baz-0.0.2.tar.gz 
- location: http://github.com/yesodweb/wai/archive/2f8a8e1b771829f4a8a77c0111352ce45a14c30f.zip 
- location: 
    git: [email protected]:commercialhaskell/stack.git 
    commit: 6a86ee32e5b869a877151f74064572225e1a0398 
- location: 
    hg: https://example.com/hg/repo 
    commit: da39a3ee5e6b4b0d3255bfef95601890afd80709 

然後加入extra-dep: truepackage進入只是告訴stack不要把它在拉的東西你正在開發的(例如,不加載它GHCI)的代碼。

+0

這個答案似乎過時了。您可以在extra-deps下指定url和文件路徑 – Flip

相關問題