hpack

Building multiple executables in the default Haskell Stack project

不羁的心 提交于 2021-01-27 05:45:00
问题 I used the default stack new to setup a project that has a server and a client as separate executables. I altered the package.yaml file in what seems like the right way (As of April 21, 2020 "There is no user guide") and added a new file to my app directory called Client.hs . I got an error saying "Enabling workaround for Main module 'Main' listed in 'other-modules' illegally!" How do I have stack build both the client and the server? When I ran stack build I got: [... clip ...] Building