[Haskell-cafe] Selecting Array type

Brent Yorgey byorgey at gmail.com
Wed Feb 20 10:49:53 EST 2008


2008/2/19 Jeff φ <jeff1.61803 at gmail.com>:

>
> instance SmartArraySelector UArray Bool   where
> instance SmartArraySelector UArray Char   where
> instance SmartArraySelector UArray Double where
> instance SmartArraySelector UArray Float  where
> instance SmartArraySelector UArray Int    where
>

Well, I'm not sure of the answer to your question, so I'll just make a
frivolous observation instead: I think you can leave off the "where" on
instances without any method definitions.

-Brent
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.haskell.org/pipermail/haskell-cafe/attachments/20080220/0ea05483/attachment.htm


More information about the Haskell-Cafe mailing list