I’m comfortable with sum and product types by themselves, but I flounder when trying to combine them. Should I model the problem as a sum type inside a record? as records in a sum type?
I’ve written up a post on how I got backed into a non-type-driven approach: http://blog.roundingpegs.com/p/1e5e8782-c368-49ec-8680-5d4f6a62bb40/ I’d be enthused if someone could show me how to do the same thing better. Also looking for examples of idiomatic code that combines sum and product types. Thanks! -- You received this message because you are subscribed to the Google Groups "Elm Discuss" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
