rescript-labs / decco

Bucklescript PPX which generates JSON (de)serializers for user-defined types
MIT License
226 stars 27 forks source link

Suppress warning 4 for decoders #42

Closed Coobaha closed 4 years ago

Coobaha commented 4 years ago

fixes #41

Suppresses this:

It will remain exhaustive when constructors are added to type Js_json.tagged_t.

  Warning number 4
  (No file name)

  this pattern-matching is fragile.
ryb73 commented 4 years ago

Looks good, thanks @Coobaha!