External Publication
Visit Post

Config languages (and Dhall)

Haskell Community [Unofficial] April 21, 2026
Source

hasufell:

Their yaml is currently generated with some sad python script and there isn’t much I can do to communicate to projects “hey, the metadata format changed, here’s how you update your scripts”.

Perhaps a smaller change is to add typing to that Python script. I don’t see any type annotations, and quite a few nested dicts.

Throw some dataclasses at it, or even a pydantic for good parsing/encoding, and you’ll be in a much, much better position to communicate metadata format changes. It would really just be changing the types and running your favourite Python type checker until it stops complaining. The past couple of years have seen quite a large push for typing in Python. It’s there for the taking. The script doesn’t have to be sad.

Discussion in the ATmosphere

Loading comments...