This is an example for a Yesod web application with Instana integration via the Instana Haskell Trace SDK. You can also buy the best monads in town here, and at a bargain price, too!
- If you haven't already, install Stack
- On POSIX systems, this is usually
curl -sSL https://get.haskellstack.org/ | sh
- On POSIX systems, this is usually
- Install the
yesod
command line tool:stack install yesod-bin --install-ghc
- Build libraries:
stack build
After installing Postgres, run the following (in a shell, not in psql):
createuser --pwprompt --superuser monad-shop # use monad-shop as password when prompted
createdb monad-shop
createdb monad-shop_test
Start a development server with:
stack exec -- yesod devel
As your code changes, your site will be automatically recompiled and redeployed to localhost.