Re: [Haskell-cafe] Re: ANNOUNCE: iteratee-compress 0.1.1

2010-10-24 Thread wren ng thornton
On 10/24/10 8:14 PM, Felipe Lessa wrote: On Sun, Oct 24, 2010 at 9:59 PM, Maciej Piechotka wrote: Currently I thought only about bzip2/gzip. Probably .xz support would follow if any. LZO, as you said, is on GPL-2. While I have no problems with GPL-2 some potential users may (Haskell tend to be

Re: [Haskell-cafe] ANNOUNCE: iteratee-compress 0.1.1

2010-10-24 Thread Conrad Parker
On 24 October 2010 20:09, Maciej Piechotka wrote: > Iteratee-compress provides compressing and decompressing enumerators > including flushing. Currently only gzip is provided but at least bzip > is planned. > > > Changes from previous version: >  - Independent from zlib library (Haskell one, not C

Re: [Haskell-cafe] Re: ANNOUNCE: iteratee-compress 0.1.1

2010-10-24 Thread Felipe Lessa
On Sun, Oct 24, 2010 at 9:59 PM, Maciej Piechotka wrote: > Currently I thought only about bzip2/gzip. Probably .xz support would > follow if any. > > LZO, as you said, is on GPL-2. While I have no problems with GPL-2 some > potential users may (Haskell tend to be BSD3 community). Does anyone > kno

[Haskell-cafe] Re: ANNOUNCE: iteratee-compress 0.1.1

2010-10-24 Thread Maciej Piechotka
On Sun, 2010-10-24 at 15:03 -0400, wren ng thornton wrote: > On 10/24/10 7:09 AM, Maciej Piechotka wrote: > > Iteratee-compress provides compressing and decompressing enumerators > > including flushing. Currently only gzip is provided but at least bzip > > is planned. > > > > Changes from previous

Re: [Haskell-cafe] Bug in HTTP (bad internal error handling)

2010-10-24 Thread Ganesh Sittampalam
On Sun, 24 Oct 2010, Bit Connor wrote: On Sat, Oct 23, 2010 at 8:49 PM, Ganesh Sittampalam wrote: I'm just looking at fixing this so I can make an upload as discussed with Sigbjorn. I guess the best thing to do is to make all the calls to fail into something more explicit. Yep. Ideally, sim

Re: [Haskell-cafe] ANNOUNCE: iteratee-compress 0.1.1

2010-10-24 Thread wren ng thornton
On 10/24/10 7:09 AM, Maciej Piechotka wrote: Iteratee-compress provides compressing and decompressing enumerators including flushing. Currently only gzip is provided but at least bzip is planned. Changes from previous version: - Independent from zlib library (Haskell one, not C) - Allow hand

Re: [Haskell-cafe] Eta-expansion and existentials (or: types destroy my laziness)

2010-10-24 Thread Henning Thielemann
Max Bolingbroke schrieb: > Let's start with a simple example of an existential data type: > >> data Stream a = forall s. Stream s (s -> Maybe (a, s)) I use quite the same data type for my signal processing applications: http://code.haskell.org/synthesizer/core/src/Synthesizer/State/Signal.hs

Re: [Haskell-cafe] Parsec in Haskell platform

2010-10-24 Thread Don Stewart
andrewcoppin: > On 24/10/2010 09:10 AM, Roman Cheplyaka wrote: >> It would be convenient to have a page which would list all the HP packages >> with their versions. The release page [2] only has a list of packages >> whose versions has changed since the last release, as I understood. > > It would b

Re: [Haskell-cafe] Re: Haskell meeting in Berlin

2010-10-24 Thread Sönke Hahn
On Saturday, October 23, 2010 07:50:41 pm Johannes Waldmann wrote: > > There will be an informal Haskell meeting [...] > > The bi-monthly lisp meeting [...] > > [1] http://www.c-base.org/calender/phpicalendar/month.php > > Pray tell - which of the three above-mentioned languages is from the dark >

Re: [Haskell-cafe] "back doors" into the IO monad

2010-10-24 Thread Gwern Branwen
On Sun, Oct 24, 2010 at 10:22 AM, Nicolas Pouillard wrote: > On Sun, 24 Oct 2010 00:28:37 +0200, Manlio Perillo > wrote: >> Hi. >> >> What are the available methods to execute IO actions from pure code? >> >> I know only unsafePerformIO and foreign import (to call a non pure >> foreign function)

Re: [Haskell-cafe] Haddock: patch to generate single-index page in addition to perl-letter indexes indices.

2010-10-24 Thread Ryan Newton
(Btw, I blame gmail for the mangled title ;-) -- it's been doing some weird stuff recently on Safari for me; but only in the subject line. I think there were backspace characters in an edit that weren't applied.) The permuted indices are interesting. It means really committing to the style/namin

Re: [Haskell-cafe] "back doors" into the IO monad

2010-10-24 Thread Nicolas Pouillard
On Sun, 24 Oct 2010 00:28:37 +0200, Manlio Perillo wrote: > Hi. > > What are the available methods to execute IO actions from pure code? > > I know only unsafePerformIO and foreign import (to call a non pure > foreign function). unsafeCoerce is a back door for almost everything. -- Nicolas P

Re: [Haskell-cafe] Parsec in Haskell platform

2010-10-24 Thread Simon Hengel
> >It would be convenient to have a page which would list all the HP packages > >with their versions. The release page [2] only has a list of packages > >whose versions has changed since the last release, as I understood. > > It would be nice to have a page that lists everything included in > ever

Re: [Haskell-cafe] Converting Values Between Lua And Haskell

2010-10-24 Thread aditya siram
I was fooled :). Some indication of that on the page would be very helpful. -deech On Sun, Oct 24, 2010 at 5:29 AM, Bulat Ziganshin wrote: > Hello aditya, > > Sunday, October 24, 2010, 8:05:55 AM, you wrote: > > HsLua page is nothing more but my fantasy about future HsLua > development :) you ma

[Haskell-cafe] running and understanding a lifting program

2010-10-24 Thread Patrick Browne
hi, I am trying to run and understand a lifting program from [1]. The program lifts points to moving points that vary their position over time. I made some effort to run the progrm but I do not know how to overide the +,-,*,sqr, and sqrt from the Num class. Below is my current attempt. I do not wi

Re: [Haskell-cafe] Haddock: patch to generate single-index page in addition to perl-letter indexes indices.

2010-10-24 Thread Thomas Schilling
For packages with many items in the index, these pages can get a bit huge. How about a permuted index like ? E.g., for your use case, you would go to E and then the row with all the "End" entries, which would contain all the nam

[Haskell-cafe] Re: Haddock: patch to generate single-index page in addition to perl-letter indexes indices.

2010-10-24 Thread David Waern
2010/10/24 Ryan Newton : > When I encounter a split-index (A-Z) page it can be quite frustrating if I > don't know the first letter of what I'm searching for.  I want to use my > browser find!  For example, tonight I wanted to look at all the functions > that END in "Window" in the Chart package --

[Haskell-cafe] ANNOUNCE: iteratee-compress 0.1.1

2010-10-24 Thread Maciej Piechotka
Iteratee-compress provides compressing and decompressing enumerators including flushing. Currently only gzip is provided but at least bzip is planned. Changes from previous version: - Independent from zlib library (Haskell one, not C) - Allow hand-flushing the contents (from outside). - Fix po

Re: [Haskell-cafe] Parsec in Haskell platform

2010-10-24 Thread Andrew Coppin
On 24/10/2010 11:10 AM, Johan Tibell wrote: 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 caba

Re: [Haskell-cafe] Converting Values Between Lua And Haskell

2010-10-24 Thread Bulat Ziganshin
Hello aditya, Sunday, October 24, 2010, 8:05:55 AM, you wrote: HsLua page is nothing more but my fantasy about future HsLua development :) you may find even XXX type where i don't found good name :) > Hi all, > The HsLua page [1] says that Int,Double,String,Bool,[a] and [(a,b)] > types can be c

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

Re: [Haskell-cafe] Parsec in Haskell platform

2010-10-24 Thread Andrew Coppin
On 24/10/2010 09:10 AM, Roman Cheplyaka wrote: It would be convenient to have a page which would list all the HP packages with their versions. The release page [2] only has a list of packages whose versions has changed since the last release, as I understood. It would be nice to have a page tha

Re: [Haskell-cafe] concurrency vs. I/O in GHC

2010-10-24 Thread Claude Heiland-Allen
On 23/10/10 23:17, Donn Cave wrote: Quoth Claude Heiland-Allen, ... The conclusion I drew was that "unsafe" foreign functions block the current "capability" (OS thread) and any "threads" (Haskell forkIO etc) currently scheduled on that capability, but other capabilities and threads continue exec

[Haskell-cafe] Re: Splay tree in a pattern matching way

2010-10-24 Thread larry.liuxinyu
Hi, I just tried a smoke test case, seems the tree is balanced enough: import System.Random lookup :: (Ord a) => STree a -> a -> STree a lookup E _ = E lookup t@(Node l x r) y | x == y= t | x > y = splay (Node (lookup l y) x r) y | otherwise = splay (Node l x (lookup r y)) y

[Haskell-cafe] Parsec in Haskell platform

2010-10-24 Thread Roman Cheplyaka
Since Parsec 2 and Parsec 3 are usually considered to be different packages, it's ambiguous to say that 'parsec' is included in Haskell Platform [1]. Could someone please: 1. Clarify which version(s) are included? 2. Fix the page [1] It would be convenient to have a page which would list all