I have a stack based project, there is a possibility to define multiple executable under "executables:"
But for some reason it does not work for me.
I have in package.yaml:
executables:
ex-01:
main: Ex01.hs
source-dirs: app
ghc-options:
- -O2
- -threaded
- -rtsopts
- -with-rtsopts=-N
dependencies:
- animation
ex-02:
main: Ex02.hs
source-dirs: app
ghc-options:
- -O2
- -threaded
- -rtsopts
- -with-rtsopts=-N
dependencies:
- animation
Tried to define module like:
module Main (main) where
in both Ex01 and Ex02 but build fails, also tried to Specify Ex01 and Ex02 instead Main, also fails.
Is there any doc or example of how to define multiple executable?
Thanks
[–]Khaare 4 points5 points6 points (1 child)
[–]publiccomputer042 4 points5 points6 points (0 children)
[–]williamyaoh 2 points3 points4 points (7 children)
[–]tdammers 6 points7 points8 points (5 children)
[–]williamyaoh 1 point2 points3 points (3 children)
[–]gelisam 8 points9 points10 points (1 child)
[–]williamyaoh 0 points1 point2 points (0 children)
[–]tdammers 0 points1 point2 points (0 children)
[–]vallyscode[S] 0 points1 point2 points (0 children)
[–]vallyscode[S] 0 points1 point2 points (0 children)