Do I need Setup.hs file when creating Haskell projects?

99封情书 提交于 2019-12-12 05:36:46

问题


I use stack new <name>, then hpack-convert and add dependencies into package.yaml in order to skip ceremony and start writing Haskell code.

Why is there's always a Setup.hs file? I don't use custom setups as far as I know. Will I need to include this file at some point?


回答1:


I think it's just an old haskell convention that "Setup.hs" can be used to build the package, even for simple build types. Pretty sure it can be removed without having issues.



来源:https://stackoverflow.com/questions/46390981/do-i-need-setup-hs-file-when-creating-haskell-projects

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!