Entropic Thoughts logo

Entropic Thoughts

Subscribe
Archives
August 20, 2025

Making Haskell hard to read, and information technology

Do idioms make code harder to read? Is information technology plug and play? Betteridge's law gives you the answer: no and no.

Hello! I hope your week is going well.

New articles

Non-Obvious Haskell Idiom: Guard-Sequence

When working with Haskell we might encounter code that looks like, I don't know,

guard (input == "-") $> stdin

or something. This is the guard–sequence idiom. It returns Nothing if the condition is false, and the right-hand side if it is true. Better examples and more variations in the article.

One could argue this is the type of thing that makes Haskell hard to read – and that's true, for an outsider. But code should not be optimised for outsiders, it should be optimised for those that maintain the code, and the above certainly is easier to read for an experienced maintainer.

Full article (2–6 minute read): Non-Obvious Haskell Idiom: Guard-Sequence

Flashcard of the week

I don't remember from where this statement comes – I think it is the study of expertise – but I think it also illustrates one of the reasons software development is difficult.

What does information technology do to the task it is intended to support?

You might be able to guess the answer if I whisper "changing requirements".

Information technology often transforms the nature of the task it is intended to support.

One of the reasons software requirements change is simply that the task for which it was originally built became different once the software was delivered.

Premium newsletter

A couple of weeks ago the latest premium newsletter went out! It contained

  • four great links;
  • a description of a new board game that probably sucks;
  • brief tips/reviews on subscriptions that are actually worth it;
  • a long, wordy review of Gene Wolfe's Book of the New Sun; and
  • a disappointed review of Fatherhood: A History of Love and Power.

Even if you're not interested in the above, nor any of the past issues (all of which you would get access to), maybe you think $2 per month (cancelable any time, no questions asked) is a fair sacrifice to support this newsletter and blog.

To upgrade, click the subscription link at the top of this newsletter and fill in your email again.

Your opinions

I cannot improve without feedback. Reply to this email to share your thoughts on any of the topics above, or anything else!Hello! I hope your week is going well.

Don't miss what's next. Subscribe to Entropic Thoughts:
custom
Powered by Buttondown, the easiest way to start and grow your newsletter.