Unboxed Vectors of newtype'd values

Ben Gamari bgamari.foss at gmail.com
Wed Jun 6 12:05:35 CEST 2012

Andres Löh <andres at well-typed.com> writes:

> Hi Bryan.
> Yes, because these are superclasses of Unbox. So can't you simply say this:
>> newtype Foo = Foo Int
>>   deriving (Eq, Show, Unbox, M.MVector MVector, G.Vector Vector)
Wonderful! I suppose that should have been clear from the error. Thanks!


- Ben

More information about the Libraries mailing list