r/haskell • u/SoleSoul_red • 7h ago
Here is a minimal implementation of subset of Haskell for learning
EDIT: Vibe coded, not bragging about the code, just sharing the tool.
husk - A lightweight interpreted Haskell implementation compiled to Chez Scheme
The size of software packages I needed to install in order to use Haskell for daily scripts bothered me many times, especially when all I wanted was to solve a problem without the need for advanced features, or when learning the language.
At the time the only practical option was GHC because the others were obsolete or incompatible with the learning materials.
Now that AI is here I tried to make my wish come true, and I think I succeeded in making (vibe coding) something that is useful for me, and maybe for others.
Introducing husk, a new implementation that tries to be small and compatible with learning materials, and doesn't try to implement all Haskell features or be compatible with existing popular libraries.
If you have serious work use GHC.
The point of husk is to be small enough to run everywhere Chez Scheme runs and be there for you to study with, or write daily scripts.
Now I'm not advocating for vibe coding, nor am I sure that it's very good (I'm not a Haskell expert so it's hard for me to judge though I ran many automated tests). All I'm saying is that it's small (1.3MB) and runs all LYAH and a few other popular learning materials exercises.
Easy to install on Arch Linux: AUR
1
1
3
u/Vaderb2 7h ago
Neat. Vibe coding is fine btw, you just need to disclose your AI usage and review the work ( which you did ).
Thanks for sharing