r/functionalprogramming • u/MagnusSedlacek • Sep 02 '24
FP Configuration Languages can also be functional by Till Schröder
https://adabeat.com/fps/configuration-languages-can-also-be-functional-by-till-schroder/
15
Upvotes
10
u/zelphirkaltstahl Sep 02 '24
Configuration languages should be declarative.
5
u/SickMoonDoe Sep 02 '24
Nix
2
u/holy-bits Sep 02 '24
It's nice to see a shout out for configuration languages. Jsonnet is also another configuration language that has fp qualities.
2
u/KyleG Sep 08 '24
Unison (a FP language) has its cloud deployment config all written in Unison code
For example, a hello world service gets deployed as
where
helloWorld.logicconverts an HttpRequest object into an HttpResponse object (parses, status code, headers, body)the whole thing is wrapped in algebraic effects handlers, which are the alternative to monadic-style FP code