Re: [Haskell-cafe] Abstract Data Types

2006-08-09 Thread Robert Dockins
On Aug 9, 2006, at 5:27 AM, Johan Grönqvist wrote: Hi, I have a question: Short version: If I want to hide the implementation of a data-type "Stack a" from the rest of the program, do I need to put its definition in a separate file? This is the usual way, as you've probably gathered.

[Haskell-cafe] Abstract Data Types

2006-08-09 Thread Johan Grönqvist
Hi, I have a question: Short version: If I want to hide the implementation of a data-type "Stack a" from the rest of the program, do I need to put its definition in a separate file? Long version: I want to use a stack, and I might implement it as a list, but I want to hide the implementa