Re: [Haskell-cafe] Installation issues with Centos

2012-09-03 Thread Chris Dornan
Hi Manish, Are you aware of the CentOS distro I am maintaining at justhub.org /download? Even if you want to build your own installations it will probably be useful for getting you going. (It should soon appear on the Haskell Platform Linux page - or at least we have a ticket for it!) Chris

Re: [Haskell-cafe] Installation issues with Centos

2012-09-03 Thread Manish Trivedi
Thank you Chris! extremely delighted. worked like a charm. I wish your distro appear on haskell wiki. very helpful. regards, manish On Mon, Sep 3, 2012 at 12:54 AM, Chris Dornan ch...@chrisdornan.com wrote: Hi Manish, ** ** Are you aware of the CentOS distro I am maintaining at

[Haskell-cafe] SYB with class: Bug in Derive.hs module

2012-09-03 Thread Roman Cheplyaka
There's a bug in syb-with-class reported by Alexey Rodriguez Yakushev in 2008 [1]. I can confirm that the bug is still there (syb-with-class-0.6.1.3, ghc 7.4.1). [1]: http://www.haskell.org/pipermail/haskell-cafe/2008-March/041179.html Here's an even simpler test case: {-# LANGUAGE

Re: [Haskell-cafe] Installation issues with Centos

2012-09-03 Thread jims
Quoting Chris Dornan ch...@chrisdornan.com: Hi Manish, Are you aware of the CentOS distro I am maintaining at justhub.org /download? Even if you want to build your own installations it will probably be useful for getting you going. Great and spot on time for me. I'm trying to install Snap on

Re: [Haskell-cafe] SYB with class: Bug in Derive.hs module

2012-09-03 Thread Andrea Vezzosi
On Mon, Sep 3, 2012 at 12:00 PM, Roman Cheplyaka r...@ro-che.info wrote: There's a bug in syb-with-class reported by Alexey Rodriguez Yakushev in 2008 [1]. I can confirm that the bug is still there (syb-with-class-0.6.1.3, ghc 7.4.1). [1]:

Re: [Haskell-cafe] Installation issues with Centos

2012-09-03 Thread Henk-Jan van Tuyl
On Mon, 03 Sep 2012 11:57:34 +0200, Manish Trivedi trivman...@gmail.com wrote: Thank you Chris! extremely delighted. worked like a charm. I wish your distro appear on haskell wiki. very helpful. I just added this to the Linux page[0]. Regards, Henk-Jan van Tuyl [0]

Re: [Haskell-cafe] Installation issues with Centos

2012-09-03 Thread Chris Dornan
Hi Jim, Previously I've been able to install and use ghc and HP in ~/ without problems. Is there any reason why this couldn't be done with your justhub package? As I've never tried this brute surgery on such a magnus opus before I'm not sure this is at all feasible? I wouldn't recommend

Re: [Haskell-cafe] Installation issues with Centos

2012-09-03 Thread Chris Dornan
Thanks Henk! I just added this to the Linux page[0]. The action on that HP ticket was to put a link here, http://hackage.haskell.org/platform/linux.html, which should happen by the next platform release. Chris ___ Haskell-Cafe mailing list

Re: [Haskell-cafe] SYB with class: Bug in Derive.hs module

2012-09-03 Thread Roman Cheplyaka
* Andrea Vezzosi sanzhi...@gmail.com [2012-09-03 12:50:03+0200] On Mon, Sep 3, 2012 at 12:00 PM, Roman Cheplyaka r...@ro-che.info wrote: There's a bug in syb-with-class reported by Alexey Rodriguez Yakushev in 2008 [1]. I can confirm that the bug is still there (syb-with-class-0.6.1.3, ghc

Re: [Haskell-cafe] hstats median algorithm

2012-09-03 Thread timothyhobbs
So I've been playing with the median problem today.  Not sure why, but it stuck in my head. import Data.List import Control.Monad.ST import Data.STRef import Control.Monad I've been using the hashing algorithm that I described last night, but it's quite slow.  I must be missing something

Re: [Haskell-cafe] Installation issues with Centos

2012-09-03 Thread jims
Quoting Chris Dornan ch...@chrisdornan.com: Hi Jim, Thanks for such a quick response. Previously I've been able to install and use ghc and HP in ~/ without problems. Is there any reason why this couldn't be done with your justhub package? As I've never tried this brute surgery on such a

Re: [Haskell-cafe] hstats median algorithm

2012-09-03 Thread Felipe Almeida Lessa
Some comments wrt. performance: On Mon, Sep 3, 2012 at 9:57 AM, timothyho...@seznam.cz wrote: Right (medianBucket,stubLen) = foldr (\thisBucket@(thisBucketLen,_) eitheriOrMedianBucket - case eitheriOrMedianBucket of Left i - if i + thisBucketLen (length `div` 2)

Re: [Haskell-cafe] hstats median algorithm

2012-09-03 Thread Felipe Almeida Lessa
On Mon, Sep 3, 2012 at 11:18 AM, Felipe Almeida Lessa felipe.le...@gmail.com wrote: Ditto for oldLen here. Also, you can simplify this lambda a lot: import Control.Applicative (($)) \(oldLen, oldVal) - let newLen = oldLen + 1 newVal = (number:) $ oldVal in newLen `seq`

Re: [Haskell-cafe] hellno - a somewhat different approach to tackling cabal hell

2012-09-03 Thread Danny B
On 09/03/2012 02:15 PM, Richard Wallace wrote: I like the approach so far. But hellno itself seems to have several dependencies itself. So installing with cabal pulls these in as fixed libraries (text, mtl, transformers, and parsec). Any plans to make these not have to be fixed? Or is there

[Haskell-cafe] Asking for advice on programming style and also performance

2012-09-03 Thread Harald Bögeholz
Dear Haskell Cafe, I am working on a solver for Slitherlink puzzles in Haskell. Today I am completely puzzled that a small change I made had a huge performance impact. I thought the change to be merely cosmetic to make a function a little more elegant and the code more readable. But this change

Re: [Haskell-cafe] hstats median algorithm

2012-09-03 Thread timothyhobbs
Thanks for the advice.  After taking most of it it is faster.  But it is still many times slower than it ought to be!  This algorithm should be much faster than simply sorting the list, and yet it is more than twice as slow! One note, you said: Increment length. modifySTRef lengthRef (+1)

Re: [Haskell-cafe] SYB with class: Bug in Derive.hs module

2012-09-03 Thread Andrea Vezzosi
On Mon, Sep 3, 2012 at 2:53 PM, Roman Cheplyaka r...@ro-che.info wrote: * Andrea Vezzosi sanzhi...@gmail.com [2012-09-03 12:50:03+0200] [...] This is pretty similar to what ended up being a ghc bug, fixed in 7.0 though: http://hackage.haskell.org/trac/ghc/ticket/3731 The difference between

Re: [Haskell-cafe] hstats median algorithm

2012-09-03 Thread timothyhobbs
Aha!!!  Now it's working.  Just had to compile with -O2 :D :D Now I'm over twice as fast for a list of 2 million!  With better length based analysis of how many buckets should be used, this number can be improved. You can feel free to use my code however you like.  I've attached the final

[Haskell-cafe] tplot (out of memory)

2012-09-03 Thread Manish Trivedi
Hi, I am running into a weird out of memory issue. While running timeplot over an input file having ~800 rows. From below provided info, seems like machine has enough ram (1849MB). Please let me know if anyone has pointers. * # free -m * total used free shared

Re: [Haskell-cafe] Cabal install fails due to recent HUnit

2012-09-03 Thread Erik Hesselink
On Tue, Aug 28, 2012 at 6:09 PM, Bryan O'Sullivan b...@serpentine.com wrote: On Mon, Aug 27, 2012 at 10:52 AM, Bryan O'Sullivan b...@serpentine.com wrote: The reason you're seeing build breakage is that the .cabal files of the broken packages were edited in-place without communicating with

Re: [Haskell-cafe] Cabal install fails due to recent HUnit

2012-09-03 Thread Chris Dornan
On Tue, Aug 28, 2012 at 6:09 PM, Bryan O'Sullivan b...@serpentine.com wrote: On Mon, Aug 27, 2012 at 10:52 AM, Bryan O'Sullivan b...@serpentine.com wrote: Not to flog a dead horse, but: ... Not to flog a dead horse, but: All our builds broke again yesterday due to this bug. The package was