From: Justin B. <jgb...@gm...> - 2008-03-19 23:42:38
|
On Tue, Mar 18, 2008 at 10:52 AM, Bjorn Bringert <bj...@br...> wrote: > Yes, this is a good idea. Does anyone have anything ready to go in a > new release that they haven't pushed yet? Does the current darcs > version build and work ok enough for the current users? Bjorn, You'll find attached a patch which adds the ability to recover field information from a Query. I originally proposed the idea back in January[1] - finally got a patch ready. I found a need for it when generating SQL and other meta-data from queries - I needed to know the types of each column in my query but couldn't get that out of the Query monad easily. This patch does it. It also patches the cabal file so the library is compiled with -O2 under GHC and gives a homepage so a link will show up on the hackage page. Justin [1] http://tinyurl.com/3y84al (or http://sourceforge.net/mailarchive/forum.php?thread_name=a45dff840801241048w24cadd3aob0291ff6933ab9b2%40mail.gmail.com&forum_name=haskelldb-users) |