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
Post a Comment