[Haskell-cafe] Looking for reliable heterogeneous vectors

Aleksey Khudyakov alexey.skladnoy at gmail.com
Sun Dec 1 20:29:08 UTC 2013

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

More information about the Haskell-Cafe mailing list