sihl icon indicating copy to clipboard operation
sihl copied to clipboard

Derive `eq` and `show` for all exposed types

Open aronerben opened this issue 2 years ago • 1 comments

Deriving eq and show makes it possible for users to easily derive eq and show for their own types that depend on Sihl types. Sihl already depends on ppx_deriving, but certain sihl-* services don't, so this would incur additional dependencies for those.

aronerben avatar May 12 '22 08:05 aronerben

Deriving user with sexp (https://github.com/janestreet/ppx_sexp_conv) would be useful, too. We currently use it to store the current user in Opiums context, what requires a sexp_of_t function : https://rgrinberg.github.io/opium/rock/Rock/Context/Key/index.html

timohuber avatar Oct 21 '22 13:10 timohuber