Hi all,

My functional programming is a bit rusty, and Guix relies heavily on the store monad. And there are several ways to interact with it, e.g. with-store, with-monad, run-with-store, mlet, %store-monad.

Often I manage to figure out how to make those functions do what I need (e.g. [1]), but I'm certainly not using them in the way they are intended to be used. Usually, I just pass `store` as argument to the functions that return (monadic?) functions, and that works.

Section 8.11 (The Store Monad) in the manual is useful, but a bit terse. Does anyone perhaps know of a tutorial or best-practices guide?

I will probably figure it out properly at some point though.

Thanks,
Hugo

[1] P.R. to make nicer `guix graph`s: https://codeberg.org/guix/guix/pulls/9725


Reply via email to