[Haskell-cafe] Fwd: ByteString Parsec clone

2008-01-25 Thread Johan Tibell
ased under BSD3 which I believe is used for Parsec as well. Anyone know how I can reach Dan? -- Johan -- Forwarded message ------ From: Johan Tibell <[EMAIL PROTECTED]> Date: Jan 22, 2008 2:56 PM Subject: ByteString Parsec clone To: [EMAIL PROTECTED] I've written, but yet n

Re: [Haskell-cafe] Fwd: ByteString Parsec clone

2008-01-25 Thread Johan Tibell
> legally, since it's released under BSD, you're allowed to do all that > (as long as you don't delete the bit of attribution that the BSD > requires :-) As a practical matter. How do you manage attributions. Can you put a other-project.LICENSE file which is a copy of the other projects LICENSE fi

Re: [Haskell-cafe] Stacking monads - beginner design question

2008-01-30 Thread Johan Tibell
> Are monad stacks with 3 and more monads common? > How could an example implementation look like? I found reading the xmonad code (http://code.haskell.org/xmonad/) enlightening. The X monad definition can be found in http://code.haskell.org/xmonad/XMonad/Core.hs -- | The X monad, a StateT transf

Re: [Haskell-cafe] Poor libraries documentation

2008-01-30 Thread Johan Tibell
> I imagine the laziness here was because these all match their names in > the traditional libc, accessable via manpages. > > You may not consider that an excuse :) I don't! To do something about it I'll adopt Network.Socket and document that (I did the same with some other base module half a year

Re: module hierarchy (Re: [Haskell-cafe] parsec3 pre-release [important note])

2008-02-04 Thread Johan Tibell
On Feb 4, 2008 12:11 PM, Wolfgang Jeltsch <[EMAIL PROTECTED]> wrote: > Am Samstag, 2. Februar 2008 05:53 schrieb Derek Elkins: > > I forgot to mention that the Text.Parsec modules should be preferred to > > the Text.ParserCombinators.Parsec modules as the Haddock documentation > > reveals. > > I wo

Re: [Haskell-cafe] The Proliferation of List-Like Types

2008-02-21 Thread Johan Tibell
Hi John! On Wed, Feb 20, 2008 at 3:39 PM, John Goerzen <[EMAIL PROTECTED]> wrote: > 3) Would it make sense to base as much code as possible in the Haskell >core areound ListLike definitions? Here I think of functions such >as lines and words, which make sense both on [Char] as well as >

Re: [Haskell-cafe] The Proliferation of List-Like Types

2008-02-21 Thread Johan Tibell
On Thu, Feb 21, 2008 at 11:37 AM, Duncan Coutts <[EMAIL PROTECTED]> wrote: > > > On Thu, 2008-02-21 at 10:06 +0100, Johan Tibell wrote: > > Hi John! > > > > On Wed, Feb 20, 2008 at 3:39 PM, John Goerzen <[EMAIL PROTECTED]> wrote: > > > 3) Woul

Re: [Haskell-cafe] The Proliferation of List-Like Types

2008-02-21 Thread Johan Tibell
On Thu, Feb 21, 2008 at 5:51 PM, Thomas Schilling <[EMAIL PROTECTED]> wrote: > > I know of an example off-hand: > > http://nominolo.blogspot.com/2007/05/networkhttp-bytestrings.html > > (Of course, as I read that, I see that the lazy code is different from > > the strict code, but I'll just i

Re: [Haskell-cafe] The Proliferation of List-Like Types

2008-02-21 Thread Johan Tibell
On Thu, Feb 21, 2008 at 6:58 PM, Thomas Schilling <[EMAIL PROTECTED]> wrote: > > On 21 feb 2008, at 18.35, Johan Tibell wrote: > > > > I switched from lazy bytestrings to a left fold in my networking code > > after reading what Oleg wrote about streams vs folds.

Re: [Haskell-cafe] The Proliferation of List-Like Types

2008-02-22 Thread Johan Tibell
On Fri, Feb 22, 2008 at 9:31 AM, Thomas Schilling <[EMAIL PROTECTED]> wrote: > On 22 feb 2008, at 08.18, Jules Bean wrote: > > > > You can't call a stream-abstraction utility using a left-fold- > > enumerator without cheating (unsafeInterleave), because the stream- > > abstraction is incompati

[Haskell-cafe] Re: ANN: Haskell-mode 2.8.0

2010-07-02 Thread Johan Tibell
l indentation support for arrow syntax > > * Autolaunch haskell-mode for files starting with #!/usr/bin/runghc > and similar > > * Added minimal major mode for parsing GHC core files, courtesy of Johan > Tibell. > There is a corresponding Haskell menu entry. > > * Allo

Re: [Haskell-cafe] lists of arbitrary depth

2010-07-13 Thread Johan Tibell
Hi Vadali, On Tue, Jul 13, 2010 at 10:58 AM, vadali wrote: > > hello, > iam really new to haskell, > > i want to define a function which takes as a parameter a list which can > contain other lists, eg. [1,[2,3],[4,[5,6]]] > > how would i define a function that can iterate through the items so (i

Re: [Haskell-cafe] Design for 2010.2.x series Haskell Platform site

2010-07-16 Thread Johan Tibell
On Fri, Jul 16, 2010 at 10:00 PM, Christopher Done wrote: > On 16 July 2010 20:37, Don Stewart wrote: > > chrisdone: > >> Regarding the Haskell Platform, maybe a summer theme is in order? > >> Sunrise, here's a whole platform upgrade. Get it while it's hot, etc. > > > >That's a great idea! :

Re: [Haskell-cafe] Running tests in Cabal

2010-07-18 Thread Johan Tibell
On Sun, Jul 18, 2010 at 9:23 PM, Magnus Therning wrote: > In my Cabal file I have defined a flag that controls whether tests are > built or not. Now I'd like to hook it up a bit more so that './Setup.hs > test' actually runs the tests. > > I haven't found a way to access that configuration flag i

Re: [Haskell-cafe] Page rank and GHC docs directory organization

2010-07-22 Thread Johan Tibell
On Thu, Jul 22, 2010 at 4:33 PM, Ryan Newton wrote: > GHC docs seem to have the problem that newer versions only gradually > overtake older ones in page rank, resulting in the effect that if one > uses Google to find library documentation, they may accidentally look > at an old version. For exam

Re: [Haskell-cafe] what's the best environment for haskell work?

2010-07-31 Thread Johan Tibell
On Sat, Jul 31, 2010 at 12:07 PM, Rustom Mody wrote: > Do most people who work with haskell use emacs/vi/eclipse or something > else?? > I use Emacs and haskell-mode. Johan ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/

[Haskell-cafe] Please take the State of Haskell, 2010 survey

2010-08-02 Thread Johan Tibell
Hi all, I've put together a quick, 9-question State of Haskell, 2010 survey: http://blog.johantibell.com/2010/08/state-of-haskell-2010-survey.html The survey will hopefully give us some insight into how people use Haskell and perhaps also some ideas on how Haskell tools and libraries could b

Re: [Haskell-cafe] Preview the new haddock look and take a short survey

2010-08-05 Thread Johan Tibell
On Thu, Aug 5, 2010 at 3:35 PM, Dino Morelli wrote: > On Wed, 4 Aug 2010, Mark Lentczner wrote: > > > The Haddock team has spent the last few months revamping the look of the > generated output. We're pretty close to done, but we'd like to get the > community's input before we put it in the main

Re: [Haskell-cafe] Preview the new haddock look and take a short survey

2010-08-09 Thread Johan Tibell
Hi Lars, On Mon, Aug 9, 2010 at 10:23 AM, Lars Viklund wrote: > The survey seems to be inactive, by the way. > It's because Mark already posted the results. :) Cheers, Johan ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.or

Re: [Haskell-cafe] Preview the new haddock look and take a short survey

2010-08-09 Thread Johan Tibell
On Mon, Aug 9, 2010 at 10:55 AM, Simon Marlow wrote: > The great thing about the Haddock redesign is that the content has been > separated from the style. If opinions about the style are sufficiently > divided we can provide a style switcher on the docs we ship with GHC, and > make that the defa

[Haskell-cafe] Re: Please take the State of Haskell, 2010 survey

2010-08-09 Thread Johan Tibell
Hi all, On Mon, Aug 2, 2010 at 3:40 PM, Johan Tibell wrote: > I've put together a quick, 9-question State of Haskell, 2010 survey: > > http://blog.johantibell.com/2010/08/state-of-haskell-2010-survey.html > > The survey will hopefully give us some insight into how peop

Re: [Haskell-cafe] String vs ByteString

2010-08-13 Thread Johan Tibell
Hi Erik, On Fri, Aug 13, 2010 at 1:32 PM, Erik de Castro Lopo > wrote: > Since the files are large I'm using ByteString, but that leads me > to wonder what is the best way to handle clashes between Prelude > functions like putStrLn and the ByteString versions? > > Anyone have any suggestions for

Re: [Haskell-cafe] String vs ByteString

2010-08-13 Thread Johan Tibell
On Fri, Aug 13, 2010 at 1:47 PM, Michael Snoyman wrote: > Use qualified imports, like so: >> >> import qualified Data.ByteString as B >> > > main = B.putStrLn $ B.pack "test" >> >> If you want to pack a String into a ByteString, you'll need to import > Data.ByteString.Char8 instead. > > Very true.

Re: [Haskell-cafe] String vs ByteString

2010-08-13 Thread Johan Tibell
On Fri, Aug 13, 2010 at 4:03 PM, Pierre-Etienne Meunier < pierreetienne.meun...@gmail.com> wrote: > Hi, > > Why don't you use the Data.Rope library ? > The asymptotic complexities are way better than those of the ByteString > functions. > > PE > For some operations. I'd expect it to be a constant

Re: [Haskell-cafe] Re: String vs ByteString

2010-08-13 Thread Johan Tibell
On Fri, Aug 13, 2010 at 4:24 PM, Kevin Jardine wrote: > I'm interested to see this kind of open debate on performance, > especially about libraries that provide widely used data structures > such as strings. > > One of the more puzzling aspects of Haskell for newbies is the large > number of libra

Re: [Haskell-cafe] Re: String vs ByteString

2010-08-13 Thread Johan Tibell
2010/8/13 Bryan O'Sullivan > 2010/8/13 Gábor Lehel > > How about the case for text which is guaranteed to be in ascii/latin1? >> ByteString again? >> > > If you know it's text and not binary data you are working with, you should > still use Data.Text. There are a few good reasons. > >1. The

Re: [Haskell-cafe] Re: String vs ByteString

2010-08-14 Thread Johan Tibell
On Sat, Aug 14, 2010 at 12:15 PM, Florian Weimer wrote: > * Bryan O'Sullivan: > > > If you know it's text and not binary data you are working with, you > should > > still use Data.Text. There are a few good reasons. > > > >1. The API is more correct. For instance, if you use Text.toUpper on a

Re: [Haskell-cafe] Re: String vs ByteString

2010-08-15 Thread Johan Tibell
Hi Colin, On Sun, Aug 15, 2010 at 9:34 AM, Colin Paul Adams wrote: > But UTF-16 (apart from being an abomination for creating a hole in the > codepoint space and making it impossible to ever etxend it) is slow to > process compared with UTF-32 - you can't get the nth character in > constant time,

Re: [Haskell-cafe] Re: String vs ByteString

2010-08-17 Thread Johan Tibell
On Tue, Aug 17, 2010 at 9:08 AM, Ketil Malde wrote: > Benedikt Huber writes: > > > Despite of all this, I think the performance of the text > > package is very promising, and hope it will improve further! > > I agree, Data.Text is great. Unfortunately, its internal use of UTF-16 > makes it inef

Re: Re[2]: [Haskell-cafe] Re: String vs ByteString

2010-08-17 Thread Johan Tibell
Hi Bulat, On Tue, Aug 17, 2010 at 10:34 AM, Bulat Ziganshin wrote: > > It's not clear to me that using UTF-16 internally does make > > Data.Text noticeably slower. > > not slower but require 2x more memory. speed is the same since > Unicode contains 2^20 codepoints > Yes, in theory a program c

Re: [Haskell-cafe] Re: String vs ByteString

2010-08-17 Thread Johan Tibell
Hi Ketil, On Tue, Aug 17, 2010 at 12:09 PM, Ketil Malde wrote: > Johan Tibell writes: > > > It's not clear to me that using UTF-16 internally does make Data.Text > > noticeably slower. > > I haven't benchmarked it, but I'm fairly sure that, if you try t

Re: Re[2]: [Haskell-cafe] Re: String vs ByteString

2010-08-17 Thread Johan Tibell
On Tue, Aug 17, 2010 at 12:39 PM, Bulat Ziganshin wrote: > Hello Tom, > > Tuesday, August 17, 2010, 2:09:09 PM, you wrote: > > > In the first iteration of the Text package, UTF-16 was chosen because > > it had a nice balance of arithmetic overhead and space. The > > arithmetic for UTF-8 started

Re: Re[2]: [Haskell-cafe] Re: String vs ByteString

2010-08-17 Thread Johan Tibell
On Tue, Aug 17, 2010 at 1:05 PM, Bulat Ziganshin wrote: > Hello Tako, > > Tuesday, August 17, 2010, 3:03:20 PM, you wrote: > > > Unless a Char in Haskell is 32 bits (or at least more than 16 bits) > > it con NOT encode all Unicode points. > > it's 32 bit > Like Bulat said it's 32 bit. It's *defin

Re: [Haskell-cafe] Re: String vs ByteString

2010-08-17 Thread Johan Tibell
On Tue, Aug 17, 2010 at 1:36 PM, Tako Schotanus wrote: > Yeah, I tried looking it up but I could find the technical definition for > Char, but in the end I found that "maxBound" was "0x10" making it > basically 24 bits :) > I think that's enough to represent all the assigned Unicode code poi

Re: [Haskell-cafe] Re: String vs ByteString

2010-08-17 Thread Johan Tibell
On Tue, Aug 17, 2010 at 2:23 PM, Yitzchak Gale wrote: > Michael Snoyman wrote: > > Regarding the data: you haven't actually quoted any > > statistics about the prevalence of CJK data > > True, I haven't seen any - except for Google, which > I don't believe is accurate. I would like to see some >

Re: [Haskell-cafe] Re: String vs ByteString

2010-08-17 Thread Johan Tibell
On Tue, Aug 17, 2010 at 6:19 PM, John Millikin wrote: > Ruby, which has an enormous Japanese userbase, solved the problem by > essentially defining Text = (Encoding, ByteString), and then > re-implementing text logic for each encoding. This allows very > efficient operation with every possible en

Re: [Haskell-cafe] Re: String vs ByteString

2010-08-17 Thread Johan Tibell
On Tue, Aug 17, 2010 at 9:30 PM, Donn Cave wrote: > Quoth John Millikin , > > > Ruby, which has an enormous Japanese userbase, solved the problem by > > essentially defining Text = (Encoding, ByteString), and then > > re-implementing text logic for each encoding. This allows very > > efficient op

Re: [Haskell-cafe] Re: String vs ByteString

2010-08-18 Thread Johan Tibell
On Wed, Aug 18, 2010 at 2:12 AM, John Meacham wrote: > > That said, there is never a reason to use UTF-16, it is a vestigial > remanent from the brief period when it was thought 16 bits would be > enough for the unicode standard, any defense of it nowadays is after the > fact justification for h

Re: [Haskell-cafe] Re: String vs ByteString

2010-08-18 Thread Johan Tibell
Hi Michael, On Wed, Aug 18, 2010 at 4:04 PM, Michael Snoyman wrote: > Here's my response to the two points: > > * I haven't written a patch showing that Data.Text would be faster using > UTF-8 because that would require fulfilling the second point (I'll get to in > a second). I *have* shown where

Re: [Haskell-cafe] Re: String vs ByteString

2010-08-18 Thread Johan Tibell
On Wed, Aug 18, 2010 at 4:12 AM, wren ng thornton wrote: > There was a study recently on this. They found that there are four main > parts of the Internet: > > * a densely connected core, where from any site you can get to any other > * an "in cone", from which you can reach the core (but not oth

Re: [Haskell-cafe] Re: String vs ByteString

2010-08-18 Thread Johan Tibell
On Wed, Aug 18, 2010 at 7:12 PM, Michael Snoyman wrote: > On Wed, Aug 18, 2010 at 6:24 PM, Johan Tibell wrote: > >> >> > Sorry, I thought I'd sent these out. While working on optimizing Hamlet I > started playing around with the BigTable benchmark. I wrote two blog p

Re: [Haskell-cafe] Re: cabal-install profiling libraries

2010-08-20 Thread Johan Tibell
On Fri, Aug 20, 2010 at 4:07 PM, Johannes Waldmann < waldm...@imn.htwk-leipzig.de> wrote: > Of course I understand "lack of developer time". > Could any of this be forked out as student projects? > These kind of projects are perfect for Google Summer of Code. We had two Cabal projects this year (

Re: [Haskell-cafe] non-blocking recv from UDP socket

2010-08-26 Thread Johan Tibell
Hi Thu, On Thu, Aug 26, 2010 at 11:13 AM, Vo Minh Thu wrote: > Is is possible to get Network.Socket.ByteString.recv to be > non-blocking (i.e. return directly even if no data is available) ? > Unfortunately not. > I have tried ti use > > setSocketOption sock NoDelay 1 > > but then I get the

Re: [Haskell-cafe] non-blocking recv from UDP socket

2010-08-26 Thread Johan Tibell
On Thu, Aug 26, 2010 at 1:08 PM, Vo Minh Thu wrote: > Ok, that explains also why using fcntl directly on the fd didn't work > either. So, I think I will go the FFI road and create my socket the > way I want. Do you see another way? > Not if you want a solution right now. You can still use Netwo

Re: [Haskell-cafe] Announce: Significant performance improvements for Data.Map

2010-08-29 Thread Johan Tibell
On Sun, Aug 29, 2010 at 3:41 PM, Daniel Fischer wrote: > That is great. > Have you any data about the speedup relative to map sizes? > Milan Straka's benchmarks ran only on very small maps (<= 2^10 elements), > I'd be interested in whether size plays a significant role in the effect. I just ran

Re: [Haskell-cafe] First questions!

2010-09-02 Thread Johan Tibell
Hi! 2010/9/2 Eoin C. Bairéad > Example 2 > > Prelude> let fac n = if n == 0 then 1 else n * fac (n-1) > > How does it know to stop ? > When fac is called with n=0 it returns 1 and stops the recursion. > and why does fac 2.5 hang? > fac, as you defined it, is only defined for integers. As you

Re: [Haskell-cafe] problems using macports?

2010-09-09 Thread Johan Tibell
See if http://stackoverflow.com/questions/2726248/ghc-6-12-and-macports/3601842#3601842 is of any help. ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

[Haskell-cafe] ANN: network-2.2.1.8 (GHC 7.0 compatibility release)

2010-09-23 Thread Johan Tibell
Hi all, network-2.2.1.8 is now out. This release makes network compatible with GHC 7.0. There are no API changes. Cheers, Johan ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] Coding conventions for Haskell?

2010-09-25 Thread Johan Tibell
On Sat, Sep 25, 2010 at 11:24 AM, Petr Pudlak wrote: > sometimes I have doubts how to structure my Haskell code - where to break > lines, how much to indent, how to name functions and variables etc. Are > there any suggested/recommended coding conventions? I searched a bit and I > found a few arti

Re: [Haskell-cafe] Coding conventions for Haskell?

2010-09-25 Thread Johan Tibell
On Sat, Sep 25, 2010 at 5:06 PM, Donn Cave wrote: > Though it's common practice for sure, maybe universal, does the > "Don't insert a space after a lambda" rule make sense? > > I found it confusing at first sight, because of course it looks > like something else - in "\n m -> ...", to the uninitia

Re: [Haskell-cafe] Coding conventions for Haskell?

2010-09-26 Thread Johan Tibell
I usually align the in under the let. On Sep 26, 2010 11:40 AM, "Petr Pudlak" wrote: > Hi Johan, > > On Sat, Sep 25, 2010 at 01:44:07PM +0200, Johan Tibell wrote: >>Quite a few people follow my style guide >> >> http://github.com/tibbe/haskell-style-guide/bl

Re: [Haskell-cafe] Re: Coding conventions for Haskell?

2010-09-26 Thread Johan Tibell
On Sun, Sep 26, 2010 at 12:31 PM, Maciej Piechotka wrote: > May I ask clarification about formatting (according to your convention) > > doSomething :: (a -> a -> a) -> a -> a -> a > doSomething f x = f y y >                  where y = f x x I always put 2 spaces before the where clause. _

Re: [Haskell-cafe] Coding conventions for Haskell?

2010-09-26 Thread Johan Tibell
On Sun, Sep 26, 2010 at 12:50 PM, Henning Thielemann wrote: > Coding conventions are often a matter of individual taste. You may find > some suggestions under >  http://www.haskell.org/haskellwiki/Category:Style > and choose the ones that you like. Absolutely. However, having a consistent style,

Re: [Haskell-cafe] The Haskell theme

2010-10-13 Thread Johan Tibell
On Wed, Oct 13, 2010 at 5:49 AM, Mark Lentczner wrote: > I'd lean toward us putting these thoughts down in the wiki, and developing a > set of "guide posts" for styling Haskell, rather than a strict set of > policies. Here's a strawman proposal for a very first guideline: Body text defaults ==

Re: [Haskell-cafe] [ANNOUNCE] text 0.10.0.0 - fast Unicode text handling

2010-10-22 Thread Johan Tibell
On Fri, Oct 22, 2010 at 10:30 AM, Ivan Lazar Miljenovic wrote: > For example, I assume that it's better to try and use Text throughout > rather than continually packing String values (in my case, I'm looking > at using Text for I/O in graphviz; should I then start using Text > rather than String f

Re: [Haskell-cafe] Parsec in Haskell platform

2010-10-24 Thread Johan Tibell
On Sun, Oct 24, 2010 at 11:57 AM, Andrew Coppin wrote: > It would be nice to have a page that lists everything included in every HP > release, together with their version numbers. (So that, e.g., I can see at a > glance what version of GHC, Haddock or cabal-install is in HP-2009.1.0.0.) > All this

[Haskell-cafe] New repo location for the network package

2010-10-27 Thread Johan Tibell
Hi all, To ease my maintenance burden, I've moved the network package repo to: http://github.com/haskell/network Patches are accepted either in the git mbox format, as normal (diff) patch files, or as GitHub pull requests. P.S. If you want to get added to the haskell GitHub organization, ju

Re: [Haskell-cafe] New repo location for the network package

2010-10-28 Thread Johan Tibell
On Thu, Oct 28, 2010 at 12:19 AM, Magnus Therning wrote: > If I, as the developer of the FOO Haskell package, want to move to use > github, can I get a source repo under that organisation as well? > I'm asking since I am considering taking some of my packages from > patch-tag to github (it's reall

Re: [Haskell-cafe] New repo location for the network package

2010-10-28 Thread Johan Tibell
On Thu, Oct 28, 2010 at 2:41 AM, John Lato wrote: > Similarly, what's the remit of the Haskell organization on github?  Is the > intention to be an umbrella for any haskell package, or more restricted?  I > have the same question as Magnus (although in my case I took over something > on github; if

Re: [Haskell-cafe] New repo location for the network package

2010-10-28 Thread Johan Tibell
On Thu, Oct 28, 2010 at 8:06 AM, Magnus Therning wrote: > Fair enough.  Do you have enough buy-in to make sure that the github > organisation becomes the best location for *all* HP packages? > > That is, can I stop going to Hackage to find the home for HP packages? Probably not. I don't want to f

Re: [Haskell-cafe] fundata1 -- Karmic Social Capital Benchmark and Shootout

2010-10-28 Thread Johan Tibell
Great stuff! I have an improvements to HashMaps that I'm working on that will hopefully work well here. ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] fundata1 -- Karmic Social Capital Benchmark and Shootout

2010-10-30 Thread Johan Tibell
On Fri, Oct 29, 2010 at 1:17 PM, Daryoush Mehrtash wrote: > In the lessons you say: > >> Haskell proved too slow with String Map, so we ended up interning strings >> and working with an IntMap and a dictionary to disintern back to strings as >> a last step.  Daniel Fisher was instrumental in bring

[Haskell-cafe] ANN: network-2.2.3, merger with network-bytestring

2010-10-31 Thread Johan Tibell
Hi all, I like to announce a new version of the network package, network-2.2.3. You can install the latest version by running: cabal update && cabal install network This version marks the end of the network-bytestring package, which has now been merged into the network package. This means th

Re: [Haskell-cafe] Benchmark

2010-11-03 Thread Johan Tibell
Hi André, Have a look at the Criterion benchmarking package: http://hackage.haskell.org/package/criterion Johan ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] call for a better timing method

2010-11-04 Thread Johan Tibell
On Thu, Nov 4, 2010 at 8:09 PM, Jiansen He wrote: > Hello, > I want to write a timing method to test sub steps in my program. Benchmarking is really tricky. I suggest you use the excellent Criterion benchmarking package: http://hackage.haskell.org/package/criterion Just type "cabal install

Re: [Haskell-cafe] Parsec and network data

2008-08-30 Thread Johan Tibell
On Sat, Aug 30, 2008 at 3:51 AM, Thomas Schilling <[EMAIL PROTECTED]> wrote: > I remember Johan Tibell (CC'd) working on an extended variant of > Parsec that can deal with this chunked processing. The idea is to > teach Parsec about a partial input and have it return a funct

Re: Hyena Status? Re: [Haskell-cafe] Starting Haskell with a web application

2008-09-16 Thread Johan Tibell
On Tue, Sep 16, 2008 at 11:15 AM, Donnie Jones <[EMAIL PROTECTED]> wrote: > Hello Johan Tibell, > > Hyena looks very interesting. From the github tracking, you've been > working... Maybe a release soon? I'm working towards it. I've been very busy at work lately

Re: [Haskell-cafe] enumeration I/O and non-sequential access

2008-10-02 Thread Johan Tibell
On Thu, Oct 2, 2008 at 3:50 PM, John Lato <[EMAIL PROTECTED]> wrote: > Hello, > > I've recently been looking at Oleg's Iteratee approach to I/O > (http://okmij.org/ftp/Haskell/Iteratee/), and I was wondering about > something. In general this seems to be a very good approach to > handling sequenti

Re: [Haskell-cafe] a really juvenile question .. hehehehe ;^)

2008-10-06 Thread Johan Tibell
2008/10/6 Galchin, Vasili <[EMAIL PROTECTED]>: > ok ... by using "newtype", we are constricting/constraining to a subset of > CInt .. e.g. something like a "subtype" of CInt?? (where by "subtype", I > mean like the notion of subtype in languages like Ada). For our audience, > can you perhaps distin

Re: [Haskell-cafe] Re: Go Haskell!

2008-11-28 Thread Johan Tibell
On Fri, Nov 28, 2008 at 10:04 AM, Simon Marlow <[EMAIL PROTECTED]> wrote: > Manuel M T Chakravarty wrote: >> In the longer run, we would like to factor our library into DPH-specific >> code and general-purpose array library that you can use independent of DPH. > > So we have two vector libraries, v

Re: [Haskell-cafe] Time for a new logo?

2008-12-14 Thread Johan Tibell
On Sun, Dec 14, 2008 at 10:15 PM, Don Stewart wrote: > I noticed a new haskell logo idea on a tshirt today, > > > http://image.spreadshirt.net/image-server/image/configuration/13215127/producttypecolor/2/type/png > > Simple, clean and *pure*. I like it. I prefer the thick lambda over the scri

Re: [Haskell-cafe] I hate constructing strings with ++

2008-12-20 Thread Johan Tibell
On Sat, Dec 20, 2008 at 4:15 PM, Thomas Hartman wrote: > I hate constructing strings with ++. Especially icky when you start > dealing with escape characters and stuff. > > cabal install HStringTemplateHelpers > > . > > import Text.StringTemplate.Helpers > putStrLn $ render1 [("name",name)] "W

Re: [Haskell-cafe] Missing Network Functions

2008-12-28 Thread Johan Tibell
2008/12/28 Bryan O'Sullivan : > 2008/12/27 John Van Enk >> >> Currently this only has: >> >> htons >> htonl >> ntohs >> ntohl > > This is all subsumed by the binary package (Data.Binary), where it makes a > lot more sense in any instance. That seems like an awfully heavy dependency just to get th

Re: [Haskell-cafe] Re: concurrent haskell: thread priorities

2009-01-10 Thread Johan Tibell
On Fri, Jan 9, 2009 at 8:22 PM, Don Stewart wrote: > Every time Simon responds on questions of parallelism and the GHC > runtime, I learn something. That indicates to me that we've got a 'bus > error' situation with how to effectively use the smp runtime. > > Simon: time for a multicore FAQ wiki p

Re: [Haskell-cafe] unicode text libraries

2009-09-28 Thread Johan Tibell
On Mon, Sep 28, 2009 at 6:15 PM, Don Stewart wrote: > tittoassini: >> 2009/9/28 Don Stewart : >> > titto: >> >> Hi, >> >> >> >> I am looking for an unicode strings  library, I found on hackage: >> >> >> >> http://hackage.haskell.org/package/compact-string >> >> >> >> http://hackage.haskell.org/pac

Re: [Haskell-cafe] ANN: Reverse Dependencies in Hackage (demo)

2009-10-15 Thread Johan Tibell
Hi, This is really neat. 2009/10/15 Roel van Dijk : > Things I would like feedback on: > - Rev. deps overview for all packages; is it useful? Yes. > - If you look at the reverse dependencies for a package like digest > you'll see a list of packages that depend on digest. Next to the names > of

[Haskell-cafe] ANN: Haskell Hackathon in Zurich, Switzerland

2009-10-16 Thread Johan Tibell
ote them on the wiki. I'll come back with a finalized date and more details soon. Hope to see you in Zurich! Johan Tibell (tibbe) ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] Needing strictness?

2009-10-21 Thread Johan Tibell
Hi Michael, I believe stdout uses line buffering by default so you need to explicitly flush the buffer to get the output -- Johan ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] Re: cvs.haskell.org down? haskell-mode abandoned?

2009-10-22 Thread Johan Tibell
Hi, I just wanted to say that I'd be really happy to see haskell-mode in code.haskell.org. I think it will make it easier for people to hack on it. Thanks, Johan ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/list

Re: [Haskell-cafe] Re: haskell-mode.el mailing list (+ dpatch)

2009-11-24 Thread Johan Tibell
On Wed, Nov 25, 2009 at 1:03 AM, Jose A. Ortega Ruiz wrote: > valery...@gmail.com (Valery V. Vorotyntsev) writes: > >> Is there anybody except me feeling the need for mailing list and issue >> tracker for emacs' haskell-mode? > > FWIW, you have my vote too. I'm convinced that a discussion forum an

[Haskell-cafe] Reminder: ZuriHac - Haskell hackathon in Zurich, March 19-21

2010-01-06 Thread Johan Tibell
:30pm to 6:30pm Saturday March 20 10am to 6pm Sunday March 21 10am to 6pm WHERE We will be in the TechTalk area of the Google Office at Brandschenkestrasse 110. Please see the wiki [3] for directions. ORGANIZERS Johan Tibell Christophe Poucet Hope to see you in Zurich! - The ZuriHac team [1] htt

[Haskell-cafe] ZuriHac registration deadline on February 14, 2010

2010-01-19 Thread Johan Tibell
Hi all, Due to budget and security constraints, we need to know the final number of attendees a bit in advance. We've therefore set a registration deadline on February 14, 2010. To register please follow the instructions on the registration page: http://www.haskell.org/haskellwiki/ZuriHac/Reg

Re: [Haskell-cafe] ANNOUNCE: ThreadScope 0.1

2010-01-27 Thread Johan Tibell
On Wed, Jan 27, 2010 at 8:51 AM, Satnam Singh wrote: > I’ve just released ThreadScope version 0.1 on Hackage. Threadscope is a > graphical utility for viewing profiling information about Haskell threads. > It was written jointly with Simon Marlow and Donnie Jones. It uses Gtk2HS so > it works un

Re: Re[2]: [Haskell-cafe] UTF-16 to UTF-8

2010-01-28 Thread Johan Tibell
2010/1/28 Bulat Ziganshin > Hello Gunther, > > Thursday, January 28, 2010, 4:07:07 PM, you wrote: > > > thanks for the tip, but how do I use the library? > > I can't really make out how to feed it UTF-16 and get String (UTF-8) > back. > > Haskell String type isn't UTF-8 encoded. it's [Char] where

Re: [Haskell-cafe] Anyone up for Google SoC 2010?

2010-02-01 Thread Johan Tibell
I'd be willing to mentor again. I think it's really important that we think hard about coming up with projects which improve the core Haskell tool chain this year. Cheers, Johan ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.or

Re: [Haskell-cafe] Anyone up for Google SoC 2010?

2010-02-02 Thread Johan Tibell
On Tue, Feb 2, 2010 at 2:06 PM, Neil Mitchell wrote: > I'd also be happy to mentor. Where is the official place to collect > project ideas? We used trac previously, are we still using it or are > we now on Reddit? Is there a way to prune the reddit list? Some of the projects (like 'text') are a

Re: [Haskell-cafe] setNonBlockingFD?

2010-02-02 Thread Johan Tibell
On Tue, Feb 2, 2010 at 4:41 PM, Magnus Therning wrote: > network-fancy fails to build because "Not in scope: 'setNonBlockingFD'". > Any > pointers to what should be used in 6.12? > I have the following in 'network': #if __GLASGOW_HASKELL__ < 611 System.Posix.Internals.setNonBlockingFD fd #

Re: [Haskell-cafe] SimonPJ and Tim Harris explain STM - video

2006-11-24 Thread Johan Tibell
I would just love to have some Haskell video casts. That would be awesome! Cheers, Johan On 11/23/06, Bayley, Alistair wrote: http://channel9.msdn.com/Showpost.aspx?postid=231495 The links to the video are a couple of yellow buttons at the bottom of the article: "Watch" or "Download". I have

Re: [Haskell-cafe] PDF library?

2007-01-23 Thread Johan Tibell
I know Peter Moberg at Chalmers was working on some PDF stuff. You might want to try to get hold of him and ask. Cheers, Johan On 1/24/07, Clifford Beshers <[EMAIL PROTECTED]> wrote: I don't suppose anyone has any Haskell code that understands the PDF format, do they? _

[Haskell-cafe] Extracting structured data in XML into records

2007-02-24 Thread Johan Tibell
assName s = hasAttrValue "class" (elem s . words) testXml = "" ++ " http://tantek.com/\";>" ++ " " ++ " Çelik" ++ " Tantek" ++ " " ++ " Tantek Çelik" ++ " " ++ &qu

Re: [Haskell-cafe] Haskell and a new web developement mailinglist?

2007-03-20 Thread Johan Tibell
I'm also interested. I'm trying to free up some time to experiment a bit with web frameworks. I would also like to try help to clean up the HTTP module and increase its performance. Johan On 3/20/07, Marc Weber <[EMAIL PROTECTED]> wrote: I've been talking to Chris Eidhof the last days and we'd

[Haskell-cafe] Efficient use of ByteString and type classes in template system

2007-04-14 Thread Johan Tibell
quot;. - Improve the regex usage overall. - Add some more functions; the plan is to add those function which could be expressed in efficiently with the current interface. An example is things like renderAndWrite, when writing doing a B.concat first is unnecessary. Cheers, Johan Tibell ___ Haskell-Cafe mailing list [EMAIL PROTECTED] http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] Efficient use of ByteString and type classes in template system

2007-04-17 Thread Johan Tibell
Great! I've written some QuickCheck tests now (not commited) so I can start to swap out the implementation and benchmark it. After I get it to run fast enough and some nice utility methods (like the possibility of using records as context) I'll announce a version 1.0. Johan On 4/17/07, Thomas H

[Haskell-cafe] ANN: template 0.1 - Simple string substitution

2007-04-23 Thread Johan Tibell
As an exercise I wrote a simple string substitution library that supports "$"-based substitution ala Perl or Python. Example usage: import qualified Data.ByteString.Lazy.Char8 as B import Text.Template context = Map.fromList . map packPair where packPair (x, y) = (B.pack x, B.pack y) hello

[Haskell-cafe] Haskell on OS X

2007-05-19 Thread Johan Tibell
I just switched to OS X and was wondering if someone would like to share their setup. Install binaries from haskell.org or Mac Ports? Which emacs build? etc Johan ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/list

Re: [Haskell-cafe] Haskell on OS X

2007-05-19 Thread Johan Tibell
cPorts wasn't being useful with ghc, I downloaded binaries, and they work fine. On 5/19/07, Johan Tibell <[EMAIL PROTECTED]> wrote: > I just switched to OS X and was wondering if someone would like to > share their setup. Install binaries from haskell.org or Mac Ports? > Which

Re: [Haskell-cafe] Is there a Template lib like Cheetah in python?

2007-05-30 Thread Johan Tibell
I've been planning to write a web templating system for a while now but I haven't gotten around to it yet. I did write a small string templating library that works like Python's string.Template but it's probably not what you need. Here it is anyway: http://hackage.haskell.org/cgi-bin/hackage-scri

Re: [Haskell-cafe] Not working examples in GHC API documentation

2013-07-18 Thread Johan Tibell
I filed a bug a while back: http://ghc.haskell.org/trac/ghc/ticket/7752 Someone that understands the API needs to fix the doc. :) On Thu, Jul 18, 2013 at 7:58 PM, John Blackbox wrote: > Hi! > Please take a look here: http://www.haskell.org/haskellwiki/GHC/As_a_library > The examples are not

Re: [Haskell-cafe] Ideas on a fast and tidy CSV library

2013-07-23 Thread Johan Tibell
On Tue, Jul 23, 2013 at 5:45 PM, Ben Gamari wrote: > Justin Paston-Cooper writes: > >> Dear All, >> >> Recently I have been doing a lot of CSV processing. I initially tried to >> use the Data.Csv (cassava) library provided on Hackage, but I found this to >> still be too slow for my needs. In the

Re: [Haskell-cafe] Ideas on a fast and tidy CSV library

2013-07-25 Thread Johan Tibell
> > > On 23 July 2013 22:13, Johan Tibell wrote: >> >> On Tue, Jul 23, 2013 at 5:45 PM, Ben Gamari >> wrote: >> > Justin Paston-Cooper writes: >> > >> >> Dear All, >> >> >> >> Recently I have been doing a lot of CSV

<    1   2   3   4   5   6   >