Cabal Multiple Executables
问题 I'm working on a website using Yesod I have the normal build running but I can't seem to populate my database reliably. I have a second haskell program that populates the database and I've added it to my cabal file like this: executable program if flag(library-only) Buildable: False main-is: ../main.hs hs-source-dirs: dist build-depends: base , myproject , yesod-default executable init if flag(library-only) Buildable: False main-is: init.hs hs-source-dirs: Init build-depends: base , directory