RE: (alpha) stick shift cabal install for GHC 6.12.1

2009-12-18 Thread Sittampalam, Ganesh
Dave Bayer wrote: There's clearly something wrong with this picture. A Rorschach blot test as to what's wrong, but I see people overreaching, if I have to wait weeks for a simple install tool, then months for the Haskell Platform to be ready. Hopefully future GHC releases will go more

Re: (alpha) stick shift cabal install for GHC 6.12.1

2009-12-18 Thread Antoine Latter
On Thu, Dec 17, 2009 at 4:00 PM, Dave Bayer ba...@cpw.math.columbia.edu wrote: Background: I never got cabal install to work on OS X 10.5 with GHC 6.10.4, basically because zlib wouldn't work. Odd, because a perfectly good version of gunzip already exists on most platforms, and the code

Re: (alpha) stick shift cabal install for GHC 6.12.1

2009-12-18 Thread Duncan Coutts
On Thu, 2009-12-17 at 14:00 -0800, Dave Bayer wrote: Background: I never got cabal install to work on OS X 10.5 with GHC 6.10.4, basically because zlib wouldn't work. Odd, because a perfectly good version of gunzip already exists on most platforms, and the code doesn't fall back to this

Re: (alpha) stick shift cabal install for GHC 6.12.1

2009-12-18 Thread Dave Bayer
On Dec 18, 2009, at 5:27 AM, Antoine Latter wrote: Do you have any more information about this failure? It seems like it would be easier to get zlib to work than to replicate cabal-install. From http://www.reddit.com/r/haskell/comments/afz6n/cabalinstallpy/ : dcoutts BTW, the reason you

openFd under -threaded gets interrupted

2009-12-18 Thread Mitar
Hi! I have written about this to Haskell cafe and they advised me to write it here. I have a problem that I cannot open /dev/rfcomm0 device if I compile my program with -threaded option. Like: fd - openFd /dev/rfcomm0 ReadWrite Nothing OpenFileFlags { append = False, noctty = True, exclusive =

cabal-install-0.8 final testing

2009-12-18 Thread Duncan Coutts
All, If you'd like to help test the new cabal-install-0.8 release then grab it here: http://haskell.org/cabal/release/cabal-install-0.8.0/ It should work with ghc-6.10 and 6.12 (and indeed 6.8 and 6.6). If nobody reports any major show stoppers then I'll upload this to hackage. Duncan

Re: openFd under -threaded gets interrupted

2009-12-18 Thread Donn Cave
Quoth Mitar mmi...@gmail.com, Also is there any workaround possible in Haskell/GHC? For example making time while openFd is in progress without interrupts? You might try something like this: import System.Posix.Signals ... setSignalMask fullSignalSet fd - openFd ...

parList implementation question

2009-12-18 Thread Marcus D. Gabriel
Hello, In Control.Parallel.Strategies, parList is defined as parList strat [] = () parList strat (x:xs) = strat x `par` (parList strat xs) with parMap strat f xs = map f xs `using` parList strat. I have recently found that if I define forceParMap strat f xs = map f xs

Re: openFd under -threaded gets interrupted

2009-12-18 Thread Mitar
Hi! On Fri, Dec 18, 2009 at 7:15 PM, Donn Cave d...@avvanta.com wrote:        setSignalMask fullSignalSet        fd - openFd ...        setSignalMask emptySignalSet Thanks! This did it. At the end it is enough to block just virtualTimerExpired signal and it works. Probably it is something RTS

Re: parList implementation question

2009-12-18 Thread Denis Bueno
On Fri, Dec 18, 2009 at 11:31, Marcus D. Gabriel mar...@gabriel.name wrote: than parList via parMap.  For example, in one experiment, parMap with parList run at 0.81 the time of the serial solution whereas forceParMap with forceParList run at 0.58 the time of the serial solution.  This is to

GHC-6.12.1: broken configure

2009-12-18 Thread Kirill A. Shutemov
I want to build ghc for i586-alt-linux-gnu. ./configure --host=i586-alt-linux-gnu --build=i586-alt-linux-gnu checking for gfind... no checking for find... /bin/find checking for sort... /bin/sort checking for ghc... /usr/bin/ghc checking version of ghc... 6.10.1 Target platform inferred as: