TITLE: Haskell Stack build multiple main
** Big Question ** How to build individual executable file
-- Build all executable *.hs
stack build
-- Run the first *.hs
stack build First
module RotateCube where
main = do
module SimpleCube where
main = do
executable rotateCube
hs-source-dirs: src
main-is: RotateCube.hs
ghc-options: -O2 -main-is RotateCube
cpp-options: -DTEST
default-language: Haskell2010
c-sources: /Users/aaa/myfile/bitbucket/haskellffi/AronCLibFFI.c
build-depends: base >= 4.7 && < 5
executable simpleCube
hs-source-dirs: src
main-is: SimpleCube.hs
ghc-options: -O2 -main-is SimpleCube
cpp-options: -DTEST
default-language: Haskell2010
c-sources: /Users/aaa/myfile/bitbucket/haskellffi/AronCLibFFI.c
build-depends: base >= 4.7 && < 5