snack
snack copied to clipboard
Invalid character in name when main module has a directory path
Given an executable qualified by a directory, snack complains about an invalid character in the derivation name:
With this package.yaml section:
executables:
ffexecutord:
main: app/FFExecutorD.hs
[nc@lorien:~/topos/tweag/funflow/funflow]$ snack build --package-yaml ./package.yaml
error: invalid character '/' in name 'app/FFExecutorD.hs-single-out'
This may be the same issue as #29
@nc6 while trying to reproduce, I realized that I'm actually unclear on the semantics of this. Here's what I assumed thus far:
main: Foo.hs
source-dirs: src/
--> meaning "the main module Foo.hs is located at src/Foo.hs"
but then I'm not sure how that works if you have
main: app/Foo.hs
source-dirs: src/
can you explain what's supposed to happen, or point me to the relevant cabal/hpack docs? thanks!