Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> 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.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: