[Haskell-cafe] cradle: a simpler process library

Julian Arni jkarni at gmail.com
Wed May 15 13:07:04 UTC 2024


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 at 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.
>
> [1]:
> https://hackage.haskell.org/package/shake-0.19.8/docs/Development-Shake-Command.html
>
> On Wed, 15 May 2024, 07:54 Julian Arni, <jkarni at gmail.com> wrote:
>
>> Hi all,
>>
>> We just released cradle, a library aimed at a being simpler and more
>> intuitive subprocess library. More details in:
>>
>> - The announcement: https://garnix.io/blog/announcing-cradle
>> - The hackage page:
>> https://hackage.haskell.org/package/cradle-0.0.0.0/docs/Cradle.html
>>
>> 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.
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/haskell-cafe/attachments/20240515/7e47091f/attachment.html>


More information about the Haskell-Cafe mailing list