2016-07-14 6 views
14

से पैकेज निर्भरता स्थापित करें क्या हैस्केल स्टैक का उपयोग करके जीथ्यूब से पैकेज का संस्करण स्थापित करना संभव है?हास्केल स्टैक जीथ्यूब

उदा। .cabal या stack.yaml फ़ाइल में, मैं एक गिट रेपो/शाखा/संशोधन पर निर्भरता कैसे इंगित कर सकता हूं?

उत्तर

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 

तो बस stack बताने के लिए कोड यह कुछ आप पर विकसित कर रहे हैं (उदाहरण के लिए, GHCi में लोड नहीं है) के रूप में में खींचती है के इलाज के लिए नहीं package प्रविष्टि के लिए extra-dep: true जोड़ें।

+0

यह उत्तर पुराना प्रतीत होता है। आप अतिरिक्त डिप्टी के तहत यूआरएल और फाइलपाथ निर्दिष्ट कर सकते हैं – Flip

संबंधित मुद्दे