guix-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Viewing derivation output in the store


From: Ludovic Courtès
Subject: Re: Viewing derivation output in the store
Date: Thu, 28 Apr 2022 09:30:26 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux)

Hi!

Josselin Poiret <dev@jpoiret.xyz> skribis:

> As an aside: is there anything preventing us from having do notation à
> la Haskell?  This could help bridge mlet and mbegin with >>=, which in
> its current form is impractical.  Here's what it could look like:
>
> (mdo %store-monad
>   (drv <- (gexp-derivation "myderivation" test-gexp))
>   (output <- (return (derivation->output-path drv)))
>   (built-derivations (list drv))
>   (return (format #t "~a~%" output)))

I guess we could do that, though it seems to me like a marginal
improvement over ‘mbegin’ and ‘mlet’.

Ludo’.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]