The Elm Architecture is a wonderful means for creating web apps without worrying about runtime errors, Hastea is a TEA-inspered web framework using those principles ontop of Haskell compilation through Asterius
You can find an asterius docker image on docker hub using this, you can run the following command, which will compile the Main.hs to dist
ahc-link --input-hs Main.hs --bundle --browser --output-dir=$(DIST_DIR)
Alternatively you can also try make docker-build
.
Other methods have had no success as of yet.
- Benchmark
- Figure out build system
- Create library instead of executable
- Import library into a Main.hs, rather than just inline
- Native nix build (blocked by asterius)
- cabal-style build