Hacker News new | ask | show | jobs
by yodsanklai 1146 days ago
> How can you print a user defined data type?

Pretty much the same way you'd do in Haskell or Rust: you add a `[@@deriving show]` directive to your datatype.