0

I am just beginning a relatively large Haskell project using the stack package manager and build tool, and I am trying to figure out the best way to split it up into several stack projects with dependencies between them.

Essentially, while I believe I understand how to use stack to include external packages downloaded from Stackage in my project, I don't understand how to include packages from other local projects. How do I create libraries using stack that I can then use in other projects?

exists-forall
  • 4,148
  • 4
  • 22
  • 29

1 Answers1

2

In stack.yaml there is the field packages. This is where you can specify the locations of other projects.

For an example, see the stack.yaml file for the hayoo repo:

https://github.com/hunt-framework/hayoo/blob/master/stack.yaml

ErikR
  • 51,541
  • 9
  • 73
  • 124