In this example our project name is "helloworld" which was created with stack new helloworld simple
stack new helloworld simple
First we have to build the project with stack build and then we can run it with
stack build
stack exec helloworld-exe