HaskellProjects
A collection of classic algorithms, mathematical computations, and benchmarks implemented in Haskell.
Each project is self-contained with its own source file(s).
📂 Included Projects
- ackermann — Ackermann function implementation
- catalan — Catalan numbers generator
- exp — Exponential function computation
- fib — Fibonacci & Lucas numbers
- fibgmp — Arbitrary-precision Fibonacci using GMP
- fibonacci — Alternative Fibonacci implementation
- golden_ratio — High-precision golden ratio calculation
- n_queen — N-Queens solver
- pi — High-precision π calculation (GMP)
- primes — Prime number generator
- sqrt — High-precision square root calculation
- tachyonic_benchmark — Performance benchmarking
- tachyonic_void — Experimental performance test
- tower_of_hanoi — Tower of Hanoi solver
🛠Build & Run
Make sure you have GHC (Glasgow Haskell Compiler) installed.
You can build and run any project like this:
cd <project-name>
ghc <project-name>.hs -o <project-name>
./<project-name> # Linux/macOS
.\<project-name>.exe # Windows
Command-line Arguments
Some programs require command-line arguments. Example for Ackermann:
./ackermann 3 4 # Linux/macOS
.\ackermann.exe 3 4 # Windows
See the README of each project for specific argument requirements.
📜 License
This repository is licensed under the MIT License.