This is a simple Haskell project stub you can copy verbatim into your project as a starting point. It has the necessary scaffolding for you to be able to run any of:
$ stack build
$ stack test
$ stack exec -- hello
You can combine the test and run steps with:
$ stack run hello
assuming (as is the case here) that there's an executable named hello
in the
package configuration.
The application stub is in src/HelloMain.hs and the unit test stub is in tests/TestSuite.hs.
These files are licensed under The MIT License, a liberal permissive open source license. Feel free to leave it as MIT, or to replace the LICENSE file with your own copyright and proprietary all-rights reserved statement.