[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

[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

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-Allenclaudiusmaxi...@goto10.org, ... 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

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

Re: [Haskell-cafe] Parsec in Haskell platform

2010-10-24 Thread Johan Tibell
On Sun, Oct 24, 2010 at 11:57 AM, Andrew Coppin andrewcop...@btinternet.com 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

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

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 andrewcop...@btinternet.com 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

[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

[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 new...@mit.edu: 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

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 http://www.lispworks.com/documentation/HyperSpec/Front/X_Symbol.htm? 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 names

[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

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 bulat.zigans...@gmail.comwrote: Hello aditya, Sunday, October 24, 2010, 8:05:55 AM, you wrote: HsLua page is nothing more but my fantasy about future HsLua

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 every HP

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 manlio_peri...@libero.it 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

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

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 nicolas.pouill...@gmail.com wrote: On Sun, 24 Oct 2010 00:28:37 +0200, Manlio Perillo manlio_peri...@libero.it wrote: Hi. What are the available methods to execute IO actions from pure code? I know only unsafePerformIO and foreign import

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 side?

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 be nice

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 You

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

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 gan...@earth.li 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.

[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 version:

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 uzytkown...@gmail.com 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).

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

2010-10-24 Thread Conrad Parker
On 24 October 2010 20:09, Maciej Piechotka uzytkown...@gmail.com 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

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 Piechotkauzytkown...@gmail.com 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