So I have a personal stack library, let's call it Foo
. In Foo
, I have a FooModule
module file named FooModule.hs
.
I have another stack project called Bar
. How do I import the FooModule.hs
module to project Bar
?
相关问题
- Understanding do notation for simple Reader monad:
- Making Custom Instances of PersistBackend
- Haskell: What is the differrence between `Num [a]
- applying a list to an entered function to check fo
- Haskell split a list into two by a pivot value
相关文章
- Is it possible to write pattern-matched functions
- Haskell underscore vs. explicit variable
- Top-level expression evaluation at compile time
- Stuck in the State Monad
- foldr vs foldr1 usage in Haskell
- List of checkboxes with digestive-functors
- How does this list comprehension over the inits of
- Replacing => in place of -> in function type signa
I do this all the time. In your
stack.yaml
file, add the path to theFoo
package:And then in your
Bar.cabal
file you say that your build depends onFoo