Try Typedefs!
Examples
typedefs.com
Your type definition:
Haskell
ReasonML
JSON Schema
Compile
Generated code