Yeah, maybe it would have been nicer to do it that way.

Re: shake's cmd. Yes, that's exactly the inspiration. We removed the polymorphism and varags aspect of the *arguments* (but kept it for the *outputs*) because it felt like it complicated signatures, type inference, and documentation for no real gain. But at the start "cradle" was almost just a pure separation of shake's cmd into a new package.

On Wed, May 15, 2024 at 5:29 AM Isaac Elliott <isaace71295@gmail.com> wrote:
Nice. I first saw this style of polymorphic command output in Shake.Command[1].

I'm surprised that `cmd` doesn't take an argument list, given how common it is to pass command args. I think it should; I'm willing to type `cmd "ls" []` so that `cmd "ls" ["-l"]` is shorter.

On Wed, 15 May 2024, 07:54 Julian Arni, <jkarni@gmail.com> wrote:
Hi all,

We just released cradle, a library aimed at a being simpler and more intuitive subprocess library. More details in:


Feedback welcome!

Cheers,
 Julian
_______________________________________________
Haskell-Cafe mailing list
To (un)subscribe, modify options or view archives go to:
http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe
Only members subscribed via the mailman list are allowed to post.