Skip to content

Latest commit

 

History

History
24 lines (19 loc) · 1.35 KB

git-aliases-for-fun-and-profit.md

File metadata and controls

24 lines (19 loc) · 1.35 KB
title date tags
Git aliases for fun and profit
2023-12-03
haskell
git
automation
shell
productivity
builds

haskell-kata's Quickstart now has this neat little ditty at the start:

git config --local alias.build '!sh -c \'for file in *.hs; do ghc -o "${file%.hs}-bin" "$file"; done\''
git build

Git is the gift that keeps on giving. I was on the hunt for a subdirectory-scoped alias, and I just discovered this incredibly flexible way to create new Git subcommands.

History: 2 years ago I read through the 1200 page behemoth Haskell Programming from First Principles. (Recommended!) I walked out of that with some 1300 Anki flashcards that I have been chewing through ever since.

I knew from the beginning I was learning Haskell 100% out of curiosity, not for professional reasons. So I expected a long lead time on the median card showing up. I added a few cards from Gabriella's wonderful desugaring article as well. When they started appearing now, 2 years hence, I realized it will make much more sense to me if whenever they show up I actually code out a quick Haskell kata to make sure I actually grok the concept and not just Gabi's example. Hence the kata.