[Haskell-cafe] Looking for reliable heterogeneous vectors

Sergey Bushnyak sergey.bushnyak at sigrlami.eu
Mon Dec 2 03:32:24 UTC 2013

On 12/01/2013 10:29 PM, Aleksey Khudyakov wrote:
> On 1 December 2013 21:11, Sergey Bushnyak <sergey.bushnyak at sigrlami.eu> wrote:
>> Hello, everyone. I'm looking for reliable library or idea how to implement
>> heterogenous vector properly. It may seem odd, but I want elements not only
>> be different types but also functions, something like that, pseudocode:
>>      hvec [a b (c->d) [a] ...]  -- can be any type
>>      let hvec = hvec [ "stuff" 5 getUrl [1, 4, 5]]
>> So far I found *vector-heterogenous* package, but can't decide is it good to
>> build on or create something on my own.
> Take a look at fixed-vector-hetero[1]. It's not released yet but I hope I'll get
> in release ready shape by second half of December.
> It's an attepmt to provide API for working with arbitrary product types.
> General idea is to work with CPS represenation of data type
> [1] https://github.com/Shimuuar/fixed-vector-hetero
I like it, I'll try to play with it for couple of days and, probably, 
bother you a little bit with e-mails -)

More information about the Haskell-Cafe mailing list