[Haskell-cafe] Making new Unboxed Algebraic Types? (A Repa Problem)

Niklas Hambüchen mail at nh2.me
Mon Jun 30 23:05:49 UTC 2014


vector-th-unbox describes one way to make an Unbox instance, but this
StackOverflow answer goes into much more detail:

http://stackoverflow.com/questions/22882228/how-to-store-a-haskell-data-type-in-an-unboxed-vector-in-continuous-memory

On 30/06/14 23:40, Ben Gamari wrote:
> Hans Georg Schaathun <georg+haskell at schaathun.net> writes:
> 
>>
>> Is there a quick and robust way to make Unbox instances from composite
>> datatypes?
>>
> You will probably want to look at the vector-th-unbox package[1].
> 
> Cheers,
> 
> - Ben
> 
> [1] http://hackage.haskell.org/package/vector-th-unbox
> 
> 
> 
> _______________________________________________
> Haskell-Cafe mailing list
> Haskell-Cafe at haskell.org
> http://www.haskell.org/mailman/listinfo/haskell-cafe
> 


More information about the Haskell-Cafe mailing list