构建并运行堆栈项目

在这个例子中,我们的项目名称是 helloworld,它是用 stack new helloworld simple 创建的

首先,我们必须使用 stack build 构建项目,然后我们可以运行它

stack exec helloworld-exe