Compile Haskell code without leaving behind temporary files.
The Haskell compiler often generates intermediate files during compilation, which developers must clean up manually.
This project provides a lightweight shell scripts — haskell — that compile Haskell code in a system temporary directory and automatically remove all intermediate files once the build is complete.
- Clean builds: Produces native executables without leaving behind
.hior other temporary artifacts. - Better code: Turn on warning flags to catch issues early and ensure cleaner code.
- Simple usage: Just provide your source files — the scripts take care of the rest.
- GHC
9.10+(recommended)
$ haskell lib.hs utils.hs main.hsThis project does not aim to replace Cabal.
Cabal remains the recommended build system for managing complex Haskell projects.
haskell-clean-compile is intended only as a lightweight helper for quick compilation without clutter.
MIT License (c) 2026 ByteBard