[Haskell-cafe] Handling Postgresql array types

info at rotnetix.com info at rotnetix.com
Wed Dec 31 01:01:06 UTC 2014


Would you be willing to send me an example of how I would do that please?

Thanks
Riaan

On Tuesday, December 30, 2014 9:01:19 PM UTC+11, Tom Ellis wrote:
>
> On Sun, Dec 28, 2014 at 06:59:26PM -0800, in... at rotnetix.com <javascript:> 
> wrote: 
> > I am curious as to how easy it will be for me to create a different 
> mapping 
> > for PGArray, so that instead of (PGArray (PGArray PGFloat8)) -> 
> [[Double]] 
> > I can do (PGArray (PGArray Float8)) -> Matrix Double.  It is not a big 
> deal 
> > to do the conversion later but if the library allows that kind of thing 
> to 
> > be easily done it can make the code more readable. 
>
> Sure, you could do it by adding a QueryRunnerDefault instance or just a 
> QueryRunner instance for a compound type like the FromRow instance for 
> IIM. 
>
> Tom 
> _______________________________________________ 
> Haskell-Cafe mailing list 
> Haskel... at haskell.org <javascript:> 
> http://www.haskell.org/mailman/listinfo/haskell-cafe 
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/haskell-cafe/attachments/20141230/05d327a7/attachment-0001.html>


More information about the Haskell-Cafe mailing list