dbuenzli / fmt

OCaml Format pretty-printer combinators
http://erratique.ch/software/fmt
ISC License
71 stars 26 forks source link

Use open type for error_msg result #43

Closed talex5 closed 4 years ago

talex5 commented 4 years ago

This makes it easy to combine with other errors. e.g.

if cancelled then Error `Cancelled
else Fmt.error_msg "Failed"
dbuenzli commented 4 years ago

Thanks ! Your patch is in as https://github.com/dbuenzli/fmt/commit/7bb3caf2f6f326774058fc97d779a47ab84b466c