2014-06-20 3 views

답변

5

가능합니다. 라이브러리가 실행 종속에서 재사용하는 방법을

-- configuration for building a library 
library 
    hs-source-dirs: src 
    exposed-modules: 
    HaskellStarter.CommitPrinter 
    other-modules: 
    HaskellStarter.Util 
    build-depends: 
    base >= 4 && < 5, 
    github >= 0.7.4 && < 0.8 

-- configuration for an executable 
executable githubCommitPrinter 
    hs-source-dirs: executables 
    main-is: Main.hs 
    build-depends: 
    base >= 4 && < 5, 
    haskell-starter 

공지 사항 : 예를 들어, 여기에 내가 매우 것이 좋습니다의 HaskellStarter project의 해당 발췌 한 것입니다.