haskell - How to reference local Cabal library from a local Cabal executable project? -


i have following folder structure:

~/scm/my-cabal-library ~/scm/my-cabal-executable 

each folder contains cabal sandbox , cabal project. first library , second executable. i'd executable use modules my-cabal-library.

the cabal documentation doesn't discuss how this.

how tell cabal library can import modules in executable project?

you refer library my-cabal-library in cabal file. add sandbox cabal add-source ../my-cabal-library make cabal aware of can dependency created.


Comments

Popular posts from this blog

java - Spring Data JPA: Why findOne(id) executing delete query internally? -

python - Mongodb How to add addtional information when aggregating? -

java - Incorrect order of records in M-M relationship in hibernate -