witchcrafters / type_class

(Semi-)principled type classes for Elixir
https://hex.pm/packages/type_class
MIT License
140 stars 16 forks source link

Custom generator struct #9

Closed expede closed 7 years ago

expede commented 7 years ago

Using a tagged tuple cased the generator all kinds of edge cases. Falling back to structs. Performance penalty is only at compile time, so whatevs.

Also added a @force_type_instance option to skip validation for single instances, and updated README with reasoning.

OvermindDL1 commented 7 years ago

Have you thought of depending on PropEr or some other full property check library for this functionality? :-)

expede commented 7 years ago

Yup, it's in the roadmap. Right now just trying to make things work.