BHC v0.2.1
Phase 1: Native Code Generation Complete
This release marks the completion of Phase 1 of BHC development. The Basel Haskell Compiler can now produce working native executables from Haskell source code.
Working Features
| Feature | Example | Status |
|---|---|---|
| Hello World | putStrLn "Hello, World!" |
✅ |
| Integer literals | print 42 |
✅ |
| Arithmetic | print (1 + 2 * 3) |
✅ |
| Let bindings | let x = 5 in print x |
✅ |
| Function definitions | double x = x + x |
✅ |
| Recursion (factorial) | factorial 10 → 3,628,800 |
✅ |
| Recursion (fibonacci) | fib 20 → 6,765 |
✅ |
Complete Pipeline
- ✅ Haskell source parsing
- ✅ Type checking (Hindley-Milner)
- ✅ Core IR lowering
- ✅ LLVM IR generation
- ✅ RTS linking
- ✅ Native executable output
Installation
curl -fsSL https://bhc.raskell.io/install.sh | shOr download the appropriate binary for your platform below.
Platform Support
This release includes binaries for:
- Linux x86_64
- macOS aarch64 (Apple Silicon)
Windows, Linux aarch64, and macOS x86_64 (Intel) binaries will be available in a future release.
Checksums
See SHA256SUMS.txt for file checksums.