List of different types?
This problem represents a turning point between object-oriented and functional thinking. Sometimes even sophisticated Haskellers are still in this mental transition, and their designs often fall into the existential typeclass pattern, mentioned in Thomas’s answer. A functional solution to this problem involves reifying the typeclass into a data type (usually once this is done, the … Read more