dbuenzli / bos

Basic OS interaction for OCaml
http://erratique.ch/software/bos
ISC License
64 stars 16 forks source link

Bos.Cmd.of_string: open the negative result ((_, [> R.msg ]) result) #87

Closed hannesm closed 2 years ago

hannesm commented 3 years ago

same as Pat.of_string etc. This makes programming and composition easier (avoids calls to Rresult.R.open_error_msg).

dbuenzli commented 3 years ago

It also makes compiler error messages less clear. I haven't used bos in a while. What's the general strategy ?

hannesm commented 2 years ago

Since we can always open the error message (e.g. with Rresult.open_err_msg`), there's no need for this PR.