Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

haskell-clean-compile

Compile Haskell code without leaving behind temporary files.

Overview

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.

Features

  • Clean builds: Produces native executables without leaving behind .hi or 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.

System Requirements

  • GHC 9.10+ (recommended)

Usage

$ haskell lib.hs utils.hs main.hs

Non-Goal

This 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.

License

MIT License (c) 2026 ByteBard

About

Compile Haskell code without leaving behind temporary files

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Contributors

Languages