First of all, install required packages:
yay -S stack haskell-language-server-binI use doom-emacs to work with Haskell. You can refer to Haskell LSP setup for doom-emacs for information on setup (it is really not hard. the hardest step was to realize to install haskell-language-server-bin instead of haskell-language-server, as it includes haskell-language-server-wrapper, which selects appropriate HLS version for the project).
To build and run a project, use
stack run
from the project directory. This will download all the necessary dependencies, compile the project and start CodeWorld canvas server on address http://localhost:3000.
If you are developing on a remote machine, you may use
ssh -L 3000:localhost:3000 user@hostnameto connect to the remote CodeWorld Canvas server.
Add new files to the src directory. Pay attention to the naming — start your files with upper case letter and name the modules with the same names as the files.
