If we are gonna go down that rabbit hole, then the natural conclusion is Haskell.
Which seems pretty reasonable tbh. Claude Code is amazing with Elm in my experience.