[Haskell-cafe] ANN: text 0.5, a major revision of the Unicode text library

2009-10-09 Thread Bryan O'Sullivan
Get it while it's fresh on Hackage, folks! Details of the changes here: http://bit.ly/1u4UOT ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] ANN: text 0.5, a major revision of the Unicode text library

2009-10-09 Thread Jeremy Shaw
Sweet! What are the chances of seeing a, instance Data Text, some day? text would be a great type to use with Happstack, because it is far more memory efficient than String. But it is difficult to do that with out a instance of Data. For the time being, I have been hacking it with: insta

Re: [Haskell-cafe] ANN: text 0.5, a major revision of the Unicode text library

2009-10-09 Thread Bryan O'Sullivan
On Fri, Oct 9, 2009 at 8:33 AM, Jeremy Shaw wrote: > > What are the chances of seeing a, instance Data Text, some day? text would > be a great type to use with Happstack, because it is far more memory > efficient than String. But it is difficult to do that with out a instance of > Data. Ask, an

Re: [Haskell-cafe] ANN: text 0.5, a major revision of the Unicode text library

2009-10-09 Thread Bryan O'Sullivan
On Fri, Oct 9, 2009 at 8:33 AM, Jeremy Shaw wrote: > > What are the chances of seeing a, instance Data Text, some day? I might as well follow up here, since I've sent Jeremy a couple of messages on this subject. I think maybe someone else will have to take a crack at a Data instance for Text,

Re: [Haskell-cafe] ANN: text 0.5, a major revision of the Unicode text library

2009-10-09 Thread Jeremy Shaw
Based on section 5.2 of this paper: http://www.cs.vu.nl/boilerplate/gmap2.pdf I wonder if the Data instance I provided is the best possible option with out modifying SYB. And that the optimal solution would be to extend ConstrRep to support Text as a primitive: data ConstrRep = AlgConstr C

Re: [Haskell-cafe] ANN: text 0.5, a major revision of the Unicode text library

2009-10-09 Thread Paulo Tanimoto
Hi Bryan, On Fri, Oct 9, 2009 at 2:11 AM, Bryan O'Sullivan wrote: > Get it while it's fresh on Hackage, folks! Details of the changes here: > http://bit.ly/1u4UOT > This is superb! I tried to post a comment to your website, but it may have been lost. It seems that the description for unlines is

Re: [Haskell-cafe] ANN: text 0.5, a major revision of the Unicode text library

2009-10-09 Thread Bryan O'Sullivan
On Fri, Oct 9, 2009 at 1:08 PM, Paulo Tanimoto wrote: > I tried to post a comment to your website, but it may have been lost. > It seems that the description for unlines is picking up a comment that > was meant for lines': > Thanks, yes, Johan sent a patch in to fix that already. Hooray for open

Re: [Haskell-cafe] ANN: text 0.5, a major revision of the Unicode text library

2009-10-09 Thread Jeremy Shaw
oops, for the sake of completeness you also need: textType = mkStringType "Data.Text" - jeremy On Oct 9, 2009, at 10:33 AM, Jeremy Shaw wrote: Sweet! What are the chances of seeing a, instance Data Text, some day? text would be a great type to use with Happstack, because it is far more m

Re: [Haskell-cafe] ANN: text 0.5, a major revision of the Unicode text library

2009-10-11 Thread Neil Brown
Bryan O'Sullivan wrote: On Fri, Oct 9, 2009 at 8:33 AM, Jeremy Shaw > wrote: What are the chances of seeing a, instance Data Text, some day? I might as well follow up here, since I've sent Jeremy a couple of messages on this subject. I think maybe someone e

Re[2]: [Haskell-cafe] ANN: text 0.5, a major revision of the Unicode text library

2009-10-11 Thread Bulat Ziganshin
Hello Neil, Sunday, October 11, 2009, 5:58:51 PM, you wrote: > I had a crack at a simple proper Data instance, and got as far as > needing a Data instance for ByteString#, accompanied by an error I don't impossible. i'm not sure wher i've read this but those # types (Int#, ByteArray# and so on)