Re: Do Existential Types make Algebraic Types obsolete? (was Re: how to exploit existential types)

1999-02-21 Thread Fergus Henderson
On 19-Feb-1999, S. Alexander Jacobson [EMAIL PROTECTED] wrote: Do existential types makes algebraic types obsolete? I mean there seems to be a large semantic overlap between the two concepts. For example, once you can implement lists with just the product type (,), why bother with

Re: Do Existential Types make Algebraic Types obsolete? (was Re: how to exploit existential types)

1999-02-20 Thread Michael Hobbs
Fergus Henderson wrote: What would happen if `write' was called with an MVar variable and an Error variable? Would the `exitWith' function get called, or would the `putMVar' function get called? Haskell doesn't normally let you define clauses for the same function in different modules.

Do Existential Types make Algebraic Types obsolete? (was Re: how to exploit existential types)

1999-02-19 Thread S. Alexander Jacobson
Do existential types makes algebraic types obsolete? I mean there seems to be a large semantic overlap between the two concepts. For example, once you can implement lists with just the product type (,), why bother with algebraic types? Arguably Boolean is a natural algebraic type, but if we