As a personal indulgence during the Christmas season (in a similar spirit to people who do Advent of Code), I’ve put together a small project that’s been in the back of my mind for years. It’s a small shell scripting language that re-uses Haskell’s syntax and base packages and runtime. Mostly as some kind of weird art project and for myself.
It’s all in one file (which is also an experiment), and doesn’t have a comprehensive list of functions. Or proper error messages, just throws error
calls at you.
If you’re somewhat interested in DSLs and language design/compilers, you might get a kick out of it. I certainly did writing it. In particular using Stephanie Weirich’s technique for making a well typed type checker has been a joy.
It was previously a project under the same name that was using shell-conduit, but I never ended up using that for real. But the scripting in Haskell idea still stuck with me.
I’ll be away from tomorrow on vacation until the new year and off the grid, so won’t be able to login to GitHub or anything like that. If you use nix flakes and feel like throwing a config my way, that’d be appreciated. I’m not really doing open source anymore; not enough personal time, so read this as show and tell, not an announcement.