Haskell生成并运行堆栈项目

示例

在此示例中,我们的项目名称是“ helloworld”,它是通过以下方式创建的 stack new helloworld simple

首先,我们必须使用构建项目,stack build然后才能使用

stack exec helloworld-exe