2 ms·
Actually using type classes and sum types, the Gender is superfluous if you define: data Gender = Male | Female Would type more, but on a tablet ATM. Not
by codygman 11y ago
Actually using type classes and sum types, the Gender is superfluous if you define:
data Gender = Male | Female
Would type more, but on a tablet ATM.
Not sure if this is a good idea or not, but interesting to think about.
- KennyCason 11y agoThanks for the input! I was considering using stronger types for the search parameters but wasn't familiar enough with Haskell's type system to make much progress. :) I'll keep exploring options!
- codygman 11y agoMaybe I can submit a pull request later :)