[Haskell-cafe] Re: Selecting Array type

2008-02-20 Thread Ben Franksen
Jeff φ wrote: However, my implementation of SmartArray requires me to create an instance of a selector class to tell the compiler whether the type is boxed or unboxed. I'm hoping to avoid creating instances of the selector class for every possible type. I'd be grateful for any suggestions.

[Haskell-cafe] Re: Selecting Array type

2008-02-19 Thread Jeff φ
I apologize if this has already been posted. I sent the following message several hours ago and I haven't seen it post. So, I'm resending. I'm trying to create a type called SmartArray. It is a type synonym for an array. If the element type can be unboxed, then SmartArray is an unboxed array.