Re: [Haskell-cafe] Link errors in Gtk2Hs are more general than I thought.

2009-04-05 Thread Colin Paul Adams
Jeff == Jeff Wheeler j...@nokrev.com writes: Jeff I installed Gtk2Hs on a similar machine earlier tonight, Jeff with much success, even with Yi. Jeff I did not use MacPorts, and instead followed the Jeff instructions on the HaskellWiki [1] under Using the GTK+ OS Jeff X

Re: [Haskell-cafe] ANNOUNCE: fad 1.0 -- Forward Automatic Differentiation library

2009-04-05 Thread Kalman Noel
Henning Thielemann schrieb: with advanced type classes: http://hackage.haskell.org/packages/archive/numeric-prelude/0.0.5/doc/html/MathObj-PowerSeries.html I'll take this as another opportunity to point out that the Haddock docs of the Numeric Prelude are highly unreadable, due to all qualified

[Haskell-cafe] Hackage not updating package list

2009-04-05 Thread Johan Tibell
Hi, I just uploaded network-2.2.1. It appears on Hackage [1] but a `cabal update` followed by `cabal install network-2.2.1` results in: Resolving dependencies... cabal: There is no available version of network that satisfies ==2.2.1 The upload took a very long time and it seemed to time out at

[Haskell-cafe] Re: Haskell EDSL to generate SQL?

2009-04-05 Thread GüŸnther Schmidt
Hi Jeremy, apologies for my initial response, that was definately premature. I had a second look and am quite impressed now. What is the best resource to look for more detail examples? Günther Jeremy Shaw schrieb: At Sat, 04 Apr 2009 15:40:56 +0200, GüŸnther Schmidt wrote: But I hope to

[Haskell-cafe] ANN: network-bytestring 0.1.2

2009-04-05 Thread Johan Tibell
I am pleased to announce a new release of network-bytestring, a Haskell library for fast socket I/O using ByteStrings. New in this release is support for scatter/gather I/O (also known as vectored I/O). Scatter/gather I/O provides more efficient I/O by using one system call to send several

[Haskell-cafe] Numeric Prelude and identifiers (Was: fad 1.0 -- Forward AutomaticDifferentiation library)

2009-04-05 Thread Henning Thielemann
On Sun, 5 Apr 2009, Kalman Noel wrote: Henning Thielemann schrieb: with advanced type classes: http://hackage.haskell.org/packages/archive/numeric-prelude/0.0.5/doc/html/MathObj-PowerSeries.html I'll take this as another opportunity to point out that the Haddock docs of the Numeric Prelude

Re: [Haskell-cafe] Numeric Prelude and identifiers (Was: fad 1.0 -- Forward AutomaticDifferentiation library)

2009-04-05 Thread Jan-Willem Maessen
On Apr 5, 2009, at 9:33 AM, Henning Thielemann wrote: On Sun, 5 Apr 2009, Kalman Noel wrote: Henning Thielemann schrieb: with advanced type classes: http://hackage.haskell.org/packages/archive/numeric-prelude/0.0.5/doc/html/MathObj-PowerSeries.html I'll take this as another opportunity

Re: [Haskell-cafe] Lazy vs correct IO [Was: A round of golf]

2009-04-05 Thread Jason Dusek
2008/09/18 o...@okmij.org: Operationally, the code does not open more than one file at a time. More importantly, the code *never* reads more than 4096 characters at a time. A block of the file is read, split into words, counted, and only then another chunk is read. After one file is done, it

Re: [Haskell-cafe] Lazy vs correct IO [Was: A round of golf]

2009-04-05 Thread Jason Dusek
I hate to say it; but you know you can tweak the OS to allow excessive file handle usage. I once wrote a Haskell script to empty a very, vary large S3 bucket. On Linux, I had to put it in a shell while loop to keep it going, due to file handle exhaustion. On my Mac it ran without

Re: [Haskell-cafe] Lazy vs correct IO [Was: A round of golf]

2009-04-05 Thread Jason Dusek
Oh, curses. I didn't run it with the right option. :; ulimit -a core file size (blocks, -c) 0 data seg size (kbytes, -d) 6144 file size (blocks, -f) unlimited max locked memory (kbytes, -l) unlimited max memory size (kbytes, -m) unlimited open

[Haskell-cafe] EclipseFP proposal for Google Summer of Code

2009-04-05 Thread Thomas ten Cate
To everyone involved in the Google Summer of Code program, I have submitted a GSoC proposal to work on EclipseFP, the Haskell plugin for Eclipse. The proposal is crossposted to both haskell.org and the Eclipse Foundation, each in their respective templates. This is also stated at the top of the

Re: [Haskell-cafe] System.Process.Posix

2009-04-05 Thread Cristiano Paris
On Sat, Apr 4, 2009 at 10:28 PM, Don Stewart d...@galois.com wrote: cristiano.paris: ... Isn't this the goal of the process package? Hi Don, thank you for the reference. I saw System.Process but when I needed it I was in a hurry and having a UNIX background I googled for some snippet

Re: [Haskell-cafe] Lazy vs correct IO [Was: A round of golf]

2009-04-05 Thread Rick R
It depends on the underlying file control used by ghc. if it's the FILE stream pointer, some implementations suffer from a 255 file limit. If it's a standard file descriptor (open instead of fopen), then it's limited by ulimit. On Sun, Apr 5, 2009 at 10:35 AM, Jason Dusek jason.du...@gmail.com

Re: [Haskell-cafe] Hackage not updating package list

2009-04-05 Thread Don Stewart
johan.tibell: Hi, I just uploaded network-2.2.1. It appears on Hackage [1] but a `cabal update` followed by `cabal install network-2.2.1` results in: Resolving dependencies... cabal: There is no available version of network that satisfies ==2.2.1 The upload took a very long time and it

[Haskell-cafe] Confused about readline/editline

2009-04-05 Thread Martijn van Steenbergen
Hello café, I'm trying to write an executable that depends on Yogurt-0.3, readline (indirectly) and hint. However, including hint in the build-depends field causes cabal to link the executable against editline instead of readline. Here is a small test case: File: Test.cabal Name: Test

[Haskell-cafe] high probability of installation problems and quality of the glorious implementation

2009-04-05 Thread FFT
I'm still learning Haskell and also evaluating whether I want to use the language in my work. It seems like a fascinating language so far (although I don't know if laziness will be a detriment later for me eventually), but I'm a bit worried about the overall quality of its GHC implementation.

Re: [Haskell-cafe] Hackage not updating package list

2009-04-05 Thread Edward Kmett
It has been slow for me today as well. I spammed up 3 released of a package in rapid succession because it wasn't showing up in the list. Apparently stuff is at least showing up several minutes after the upload completes though as evidenced by the fact that I can see all of those versions now.

Re: [Haskell-cafe] Confused about readline/editline

2009-04-05 Thread Judah Jacobson
On Sun, Apr 5, 2009 at 10:06 AM, Martijn van Steenbergen mart...@van.steenbergen.nl wrote: Hello café, I'm trying to write an executable that depends on Yogurt-0.3, readline (indirectly) and hint. However, including hint in the build-depends field causes cabal to link the executable against

Re: [Haskell-cafe] Confused about readline/editline

2009-04-05 Thread Martijn van Steenbergen
Judah Jacobson wrote: I'm not sure, but there might be some order of flags or packages you could give to Cabal which would cause it to link to readline first; I think if gcc gets -lreadline -ledit in that order then it will do what you want. Passing -v or -v3 to cabal build should let you see

Re: [Haskell-cafe] high probability of installation problems and quality of the glorious implementation

2009-04-05 Thread FFT
On Sun, Apr 5, 2009 at 12:35 PM, John Dorsey hask...@colquitt.org wrote: Once it's installed and working, GHC's a very decent compiler. My general null hypothesis is, as Alec Baldwin put it, that a loser is a loser, or a buggy project is buggy. If GHC is robust overall (which I'm yet to find

Re: [Haskell-cafe] high probability of installation problems and quality of the glorious implementation

2009-04-05 Thread Peter Verswyvelen
That is strange, I'm using Ubuntu myself, and I come from Windows so know absolutely nothing about Linux whatsoever, but GHC 6.10.2 binary installed without problems. But anyway, in this case, if you're on Windows, installation of GHC works like a charm: download, install, play. But for most of

Re: [Haskell-cafe] binary package: memory problem decoding an IntMap

2009-04-05 Thread Manlio Perillo
Manlio Perillo ha scritto: Hi. I'm having memory problems decoding a big IntMap. The data structure is: IntMap (UArr (Word16 :*: Word8)) There are 480189 keys, and a total of 100480507 elements (Netflix Prize). The size of the encoded (and compressed) data is 184 MB. When I load data from

Re: [Haskell-cafe] high probability of installation problems and quality of the glorious implementation

2009-04-05 Thread Miguel Mitrofanov
What about 6.10.1? Is it failing too? On 5 Apr 2009, at 22:22, FFT wrote: I'm still learning Haskell and also evaluating whether I want to use the language in my work. It seems like a fascinating language so far (although I don't know if laziness will be a detriment later for me eventually),

Re: [Haskell-cafe] high probability of installation problems and quality of the glorious implementation

2009-04-05 Thread wren ng thornton
FFT wrote: John Dorsey wrote: Once it's installed and working, GHC's a very decent compiler. My general null hypothesis is, as Alec Baldwin put it, that a loser is a loser, or a buggy project is buggy. If GHC is robust overall (which I'm yet to find out), why is the installation so broken?

Re: [Haskell-cafe] high probability of installation problems and quality of the glorious implementation

2009-04-05 Thread John Dorsey
Quoth FFT: My general null hypothesis is, as Alec Baldwin put it, that a loser is a loser, or a buggy project is buggy. I can't see the world in such black and white terms. GHC has strengths and weaknesses, as do other projects. GHC is changing over time, as are other projects. Formally

Re: [Haskell-cafe] binary package: memory problem decoding an IntMap

2009-04-05 Thread Nicolas Pouillard
Excerpts from Manlio Perillo's message of Sun Apr 05 22:41:57 +0200 2009: Manlio Perillo ha scritto: Hi. I'm having memory problems decoding a big IntMap. The data structure is: IntMap (UArr (Word16 :*: Word8)) There are 480189 keys, and a total of 100480507 elements

Re: [Haskell-cafe] binary package: memory problem decoding an IntMap

2009-04-05 Thread Manlio Perillo
Manlio Perillo ha scritto: [...] It seems there is a problem with tuples, too. I have a: [(Word16, UArr (Word32 :*:* Word8))] This eats more memory than it should, since tuples are decoded lazily. My bad, sorry. I simply solved by using a strict consumer (foldl' instead of foldl).

Re: [Haskell-cafe] high probability of installation problems and quality of the glorious implementation

2009-04-05 Thread Erik de Castro Lopo
FFT wrote: I'm still learning Haskell and also evaluating whether I want to use the language in my work. snip For example, I tried installing GHC-6.10.2 on my Ubuntu 8.04 machine (probably the most mainstream Linux these days). I'm on Ubuntu 8.10 and soon to move to 9.04 and I agree that

Re: [Haskell-cafe] high probability of installation problems and quality of the glorious implementation

2009-04-05 Thread Jason Dagit
On Sun, Apr 5, 2009 at 4:13 PM, Erik de Castro Lopo mle...@mega-nerd.com wrote: FFT wrote: I'm still learning Haskell and also evaluating whether I want to use the language in my work. snip For example, I tried installing GHC-6.10.2 on my Ubuntu 8.04 machine (probably the most mainstream

Re: [Haskell-cafe] high probability of installation problems and quality of the glorious implementation

2009-04-05 Thread Erik de Castro Lopo
Jason Dagit wrote: In particular, I advise my friends not to install GHC from apt on Debian/Ubuntu because of the way the packages are fractured on those distros. Fractured? Nothing but problems for casual Haskell hackers. If you know your distro and Haskell well, then sure it's easy to

Re: [Haskell-cafe] high probability of installation problems and quality of the glorious implementation

2009-04-05 Thread FFT
On Sun, Apr 5, 2009 at 1:41 PM, Peter Verswyvelen bugf...@gmail.com wrote: That is strange, I'm using Ubuntu myself, and I come from Windows so know absolutely nothing about Linux whatsoever, but GHC 6.10.2 binary installed without problems. Are you running 32-bit Ubuntu 8.04 ?

Re: [darcs-users] [Haskell-cafe] Reverting to any old version using Darcs

2009-04-05 Thread Eric Kow
On Wed, Apr 1, 2009 at 11:25 PM, Claus Reinke claus.rei...@talk21.comwrote: Perhaps the rumours refer to non-tagged versions? In conventional non-distributed version control systems, one might go back to the version on a specific date, while with darcs, that only makes sense wrt a specific

Re: [Haskell-cafe] high probability of installation problems and quality of the glorious implementation

2009-04-05 Thread Brandon S. Allbery KF8NH
On 2009 Apr 5, at 19:47, Erik de Castro Lopo wrote: Jason Dagit wrote: I wonder when we'll get a good haskell virtual package on Debian? What would this package do? Install ghc + all the little pieces of libghc6-cruft needed to get a sane working environment? -- brandon s. allbery

Re: [Haskell-cafe] Combining sequences

2009-04-05 Thread Henning Thielemann
On Sat, 4 Apr 2009, michael rice wrote: Is there a simple way to combine two sequences that are in ascending order into a single sequence that's also in ascending order? An example would be the squares [1,4,9,16,25..] combined with the cubes [1,8,27,64,125..] to form [1,1,4,8,9,16,25,27..].

[Haskell-cafe] haskelldb, how to escape table names

2009-04-05 Thread GüŸnther Schmidt
Hi, how can I escape table and column names, from something like: kh-internes-kennz to this: [kh-internes-kennz] ? Günther ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] high probability of installation problems and quality of the glorious implementation

2009-04-05 Thread Richard O'Keefe
On 6 Apr 2009, at 1:05 pm, Brandon S. Allbery KF8NH wrote: On 2009 Apr 5, at 19:47, Erik de Castro Lopo wrote: What would this package do? Install ghc + all the little pieces of libghc6-cruft needed to get a sane working environment? I want the Zen package: Make me one with

Re: [Haskell-cafe] Combining sequences

2009-04-05 Thread michael rice
Thanks. It looks like mergeBy will do the job, but is it available in Hugs? Michael --- On Sun, 4/5/09, Henning Thielemann lemm...@henning-thielemann.de wrote: From: Henning Thielemann lemm...@henning-thielemann.de Subject: Re: [Haskell-cafe] Combining sequences To: michael rice

Re: [Haskell-cafe] high probability of installation problems and quality of the glorious implementation

2009-04-05 Thread Jason Dagit
On Sun, Apr 5, 2009 at 4:47 PM, Erik de Castro Lopo mle...@mega-nerd.com wrote: Jason Dagit wrote: In particular, I advise my friends not to install GHC from apt on Debian/Ubuntu because of the way the packages are fractured on those distros. Fractured? In the sense that they split up the

Re: [Haskell-cafe] Combining sequences

2009-04-05 Thread Thomas Hartman
It's not in hugs, nor in ghc. It's just in hackage. However, by the looks of it, you should probably be able to use it in hugs. I didn't actually check this, but the cabal file didn't name any fancy extensions, so it looks pretty cross-compiler. You can just go to

Re: [Haskell-cafe] Lazy vs correct IO [Was: A round of golf]

2009-04-05 Thread oleg
It opens and closes each file in turn; but it would it be unwise to open and close each file as we'd read a chunk from it? This would allow arbitrary interleaving. If I understand you correctly, you are proposing processing several files in parallel, so to interleave IO. If the `files'

[Haskell-cafe] cabal build on mac os 10.5.6 , can't find gmp

2009-04-05 Thread brian
Hi, Cabal won't build zlib because it can't find libgmp. It's there, in /sw/lib (fink installation). I've modified the bootstrap script and added -L/sw/lib to the ghc options. This is a mystery in itself because ghc is itself a fink package and should know where gmp is, so that's already

[Haskell-cafe] Linking hmatrix without LAPACK

2009-04-05 Thread Duane Johnson
I'm curious if there is a quick fix to this. I installed GLS and hmatrix, and it runs wonderfully together in ghci. When I run ghc -- make, however, I run into the following link dependency: Linking SilkwormGame ... Undefined symbols: _dgemm_, referenced from: _multiplyR in

[Haskell-cafe] Re: Linking hmatrix without LAPACK

2009-04-05 Thread Duane Johnson
On a related note, I've installed Atlas, and I get the following error when linking: Linking SilkwormGame ... ld: in /opt/local/lib/liblapack.a(), not a valid archive member collect2: ld returned 1 exit status How would I go about diagnosing this? I've never seen an ld error like that.