Re: [Haskell-cafe] GHC 6.8.3 binary for older linux

2008-08-17 Thread Duncan Coutts
On Thu, 2008-08-14 at 16:31 +0800, Agent Zhang wrote: > Halo~ > > I ran into the following error while trying to run a binary generated > by GHC 6.8.x on our production machines with a not-so-recent linux > installed (kernel 2.6.9). > > $ ./restyscript > restyscript: timer_create: Invalid

Re: [Haskell-cafe] Cabal has trouble with projects that have both src and lib directories?

2008-08-17 Thread Duncan Coutts
On Thu, 2008-08-14 at 22:32 -0400, Nicholas Andrews wrote: > Hi! > > I'm trying to set up a project with both src and lib directories with > cabal. My blah.cabal file looks like: > > Library > Build-Depends: base > Exposed-Modules:Foo > hs-source-dirs: lib/foo > > Executable

Re: [Haskell-cafe] two problems with Data.Binary and Data.ByteString

2008-08-14 Thread Duncan Coutts
On Thu, 2008-08-14 at 10:21 -0700, Don Stewart wrote: > > I think you're right. The Binary instances cannot and must not read more > > than they need to, so that gives us the behaviour that we read exactly > > the length of the file, but no more, and thus we never hit EOF, so we > > don't close th

Re: [Haskell-cafe] two problems with Data.Binary and Data.ByteString

2008-08-14 Thread Duncan Coutts
On Wed, 2008-08-13 at 12:02 -1000, Tim Newsham wrote: > However, I think probably the real blame here should probably go > to Data.Binary which doesn't attempt to check that it has consumed > all of its input after doing a "decode". If "decode" completes > and there is unconsumed data, it should

Re: [Haskell-cafe] two problems with Data.Binary and Data.ByteString

2008-08-13 Thread Duncan Coutts
On Tue, 2008-08-12 at 14:13 -1000, Tim Newsham wrote: > I also noticed another issue while testing. If my program loads > the data at startup by calling loadState then all later calls to > saveState give an error: > >Log: savedState.bin: openFile: resource busy (file is locked) You're not u

Re: [Haskell-cafe] poll: how can we help you contribute to darcs?

2008-08-03 Thread Duncan Coutts
On Fri, 2008-08-01 at 16:45 +0100, Eric Kow wrote: > Dear Haskellers, > > I would like to take an informal poll for the purposes of darcs > recruitment. Could you please complete this sentence for me? > >"I would contribute to darcs if only..." > > The answers I am most interested in hearin

Re: [Haskell-cafe] Re: Kleisli composition operator

2008-08-03 Thread Duncan Coutts
On Sun, 2008-08-03 at 15:31 +, Roly Perera wrote: > Daniel Fischer web.de> writes: > > > Which implementation are you using? > > IIRC, GHC didn't have it in Control.Monad before the 6.8 branch. > > Duncan Coutts <[EMAIL PROTECTED]> writes: >

Re: [Haskell-cafe] Re: Kleisli composition operator

2008-08-03 Thread Duncan Coutts
On Sun, 2008-08-03 at 14:52 +, Roly Perera wrote: > > I'm obviously missing something basic here but I don't seem to be able to > > use > > the >=> operator which is apparently defined in the Prelude and also in > > Control.Monad. > > Sorry, I wasn't very clear in my original posting. What I

Re: [Haskell-cafe] code review? store server, 220loc.

2008-08-03 Thread Duncan Coutts
On Sat, 2008-08-02 at 19:13 -1000, Tim Newsham wrote: > My measurements show that a simple dummy server (accept, forkio, > recv byte) handles roughly 7500 requests/connects per second, > the server/client that do real messages do about 4500 req and > connections per second. If all requests are on

Re: [Haskell-cafe] Cabal files on Windows

2008-08-01 Thread Duncan Coutts
On Sun, 2008-07-27 at 21:01 -0500, John Lato wrote: > > Use Haskell String syntax for paths that contain spaces: > > > > include-dirs: "C:\\Program Files\\program\\include" > > Hi Duncan, > > Thanks, this worked (mostly). Although I had to change the line to > > include-dirs: "\"C:\\Program F

Re: [Haskell-cafe] Cabal + yi + alex problem.

2008-07-30 Thread Duncan Coutts
On Wed, 2008-07-30 at 14:58 -0400, John Dorsey wrote: > > [problems with cabal install yi] > > Curious, I tried this out, on a Debian etch box with GHC 6.8.3. > > "cabal update ; cabal install yi --global" > complained about needing alex >=2.0.something and <3. > > Then "cabal install alex" hap

Re: [Haskell-cafe] Cabal + yi + alex problem.

2008-07-30 Thread Duncan Coutts
On Wed, 2008-07-30 at 03:45 -0500, Austin Seipp wrote: > Excerpts from Yann Golanski's message of Wed Jul 30 02:34:05 -0500 2008: > > I cannot seem to be able to install yi via cabal install. The error I > > get is as follows. I suspect alex is not installed in the correct > > place. > > ... >

Re: [Haskell-cafe] www.haskell.org is currently very slow in responding to HTTP requests

2008-07-30 Thread Duncan Coutts
On Wed, 2008-07-30 at 11:58 +0900, Benjamin L.Russell wrote: > Currently, www.haskell.org is very slow in responding to HTTP > requests, taking over a minute just to display the main home page. > This problem is causing difficulties in displaying options for mailing > lists or in displaying Haskel

Re: [Haskell-cafe] Fw: patch applied (ghc): Remove the OpenGL family of libraries fromextralibs

2008-07-29 Thread Duncan Coutts
On Tue, 2008-07-29 at 15:34 +0100, Malcolm Wallace wrote: > > I don't think that's right. The HP maintainers are not (and cannot be) > > the maintainers of each individual package. That just does not scale. > > Oh absolutely, but I was imagining that (at least part of) the purpose > of the Platfo

Re: [Haskell-cafe] Fw: patch applied (ghc): Remove the OpenGL family of libraries fromextralibs

2008-07-29 Thread Duncan Coutts
On Mon, 2008-07-28 at 11:11 +0100, Malcolm Wallace wrote: > > FYI: Haskell's OpenGL binding has just been dropped from GHC's > > extralibs, which means that it will no longer be kept in sync with GHC > > development, at least not by GHC HQ. > > > > GHC HQ has its hands full and -generally speakin

Re: [Haskell-cafe] Cabal and Strings and CPP

2008-07-28 Thread Duncan Coutts
On Mon, 2008-07-28 at 15:02 -0700, Philip Weaver wrote: > However, passing the same CPP definition via cabal does not work. > >runhaskell Setup.hs build --ghc-options=-DFOO="\"hello world\"" > >runhaskell Setup.hs build --ghc-options=-DFOO='"hello world"' > > With either of these comma

Re: [Haskell-cafe] Re: ANN: Yi 0.4.1

2008-07-28 Thread Duncan Coutts
On Mon, 2008-07-28 at 07:39 +, Jean-Philippe Bernardy wrote: > Niklas Broberg gmail.com> writes: > > > > > > The gtk frontend should not suffer from this: > > > > > > yi -fgtk > > > > C:\Documents and Settings\Niklas Broberg>yi -fgtk > > yi: exception :: System.Glib.GError.GError > > I'm

Re: [Haskell-cafe] Cabal files on Windows

2008-07-28 Thread Duncan Coutts
On Sun, 2008-07-27 at 21:01 -0500, John Lato wrote: > On Sun, Jul 27, 2008 at 3:25 PM, Duncan Coutts > > Use Haskell String syntax for paths that contain spaces: > > > > include-dirs: "C:\\Program Files\\program\\include" > > Hi Duncan, > > Thank

Re: Re[2]: [Haskell-cafe] Cabal files on Windows

2008-07-27 Thread Duncan Coutts
On Mon, 2008-07-28 at 00:27 +0400, Bulat Ziganshin wrote: > Hello Henk-Jan, > > Sunday, July 27, 2008, 11:36:32 PM, you wrote: > > >> Can anyone point me to a method for including path names with spaces > >> in a cabal file? I would like to add a line similar to the following: > > Have you trie

Re: [Haskell-cafe] Re: ANN: Yi 0.4.1

2008-07-27 Thread Duncan Coutts
On Sun, 2008-07-27 at 20:58 +, Jean-Philippe Bernardy wrote: > Don Stewart galois.com> writes: > > > > $ yi -f pango > > Launching custom yi: "/home/dons/.yi/yi-x86_64-linux" > > yi: exception :: System.Glib.GError.GError > > > > Anyone seen this? > > Consistently on x64. The

Re: [Haskell-cafe] Cabal files on Windows

2008-07-27 Thread Duncan Coutts
On Sat, 2008-07-26 at 20:23 -0500, John Lato wrote: > Hello, > > Can anyone point me to a method for including path names with spaces > in a cabal file? I would like to add a line similar to the following: > include-dirs: C:\Program Files\program\include > and of course a corresponding library

Re: [Haskell-cafe] ANNOUNCE: Sun Microsystems and Haskell.org joint project on OpenSPARC

2008-07-25 Thread Duncan Coutts
On Sat, 2008-07-26 at 03:02 +0200, Mitar wrote: > Hi! > > > If we spend so long blocked on memory reads that we're only utilising > > 50% of a core's time then there's lots of room for improvements if we > > can fill in that wasted time by running another thread. > > How can you see how much doe

Re: [Haskell-cafe] Fw: patch applied (ghc): Remove the OpenGL family of libraries fromextralibs

2008-07-25 Thread Duncan Coutts
On Fri, 2008-07-25 at 17:57 +0100, Claus Reinke wrote: > So, if one of you wanted to step forward and offer to keep these > Haskell bindings for OpenGL&co maintained, perhaps steward them > into the H(L)P, now would probably be a good time. I fully expect the GL and AL binding libs to join the H

Re: [Haskell-cafe] ANNOUNCE: Sun Microsystems and Haskell.org joint project on OpenSPARC

2008-07-24 Thread Duncan Coutts
On Fri, 2008-07-25 at 10:38 +1000, Ben Lippmeier wrote: > I'd be more interested in the 8 x hardware threads per core, [1] > suggests that (single threaded) GHC code spends over half its time > stalled due to L2 data cache miss. Right, that's what I think is most interesting and why I wanted

Re: [Haskell-cafe] ANNOUNCE: Sun Microsystems and Haskell.org joint project on OpenSPARC

2008-07-24 Thread Duncan Coutts
On Thu, 2008-07-24 at 14:38 -0700, John Meacham wrote: > Neat stuff. I used to work at Sun in the solaris kernel group, the SPARC > architecture is quite elegant. I wonder if we can find an interesting > use for the register windows in a haskell compiler. Many compilers for > non c-like languages

Re: [Haskell-cafe] ANNOUNCE: Sun Microsystems and Haskell.org joint project on OpenSPARC

2008-07-24 Thread Duncan Coutts
On Thu, 2008-07-24 at 16:43 +1200, Richard A. O'Keefe wrote: > On 24 Jul 2008, at 3:52 am, Duncan Coutts wrote: > [Sun have donated a T5120 server + USD10k to develop > support for Haskell on the SPARC.] > > This is wonderful news. > > I have a 500MHz UltraSPAR

Re: [Haskell-cafe] Literate program implementing text editor

2008-07-23 Thread Duncan Coutts
On Wed, 2008-07-23 at 21:05 +0100, Eric wrote: > Hi all, > > I wanted to embark on a Haskell program that implements a simple text > editor. Before doing so, however, I thought that I should ask: Does > anyone know of a literate Haskell program already in existence that does > the job? I don'

[Haskell-cafe] ANNOUNCE: Sun Microsystems and Haskell.org joint project on OpenSPARC

2008-07-23 Thread Duncan Coutts
http://haskell.org/opensparc/ I am very pleased to announce a joint project between Sun Microsystems and the Haskell.org community to exploit the high performance capabilities of Sun's latest multi-core OpenSPARC systems via Haskell! http://opensparc.net/ Sun has donat

Re: [Haskell-cafe] carry "state" around ....

2008-07-20 Thread Duncan Coutts
On Sat, 2008-07-19 at 23:55 -0500, Galchin, Vasili wrote: > yes Duncan I am trying to pass-by-value. I am familiar with > ForeignPtr; however, I don't comprehend what you and Brandon are > suggesting to do. Could either of you provide a code illustration or > point at existing code to illustrate y

Re: [Haskell-cafe] carry "state" around ....

2008-07-19 Thread Duncan Coutts
On Sat, 2008-07-19 at 10:45 -0400, Brandon S. Allbery KF8NH wrote: > > On 2008 Jul 19, at 2:40, Galchin, Vasili wrote: > > > My viewpoint is that the above "Internal members" must be "carried" > > around in a Haskell program. Am I correct?? If I am correct, then > > the Linux implementation of P

Re: [Haskell-cafe] carry "state" around ....

2008-07-19 Thread Duncan Coutts
On Sat, 2008-07-19 at 01:40 -0500, Galchin, Vasili wrote: > hello, > > > Following is more of a criticism of Linux implementation of the > Posix real-time extension of asynchronous I/O if not interesting > please skip. The central data structure for Posix AIO is an aiocb. In > any ca

Re: [Haskell-cafe] Re: Trying to install cabal

2008-07-19 Thread Duncan Coutts
On Sat, 2008-07-19 at 01:26 +0200, Ben Franksen wrote: > Henning Thielemann wrote: > > On Mon, 14 Jul 2008, Tillmann Rendel wrote: > > > >> Apropos cabal-install: can i make it build documentation during the > >> installation process and store them in some central location? > > > > I also wonder

Re: [Haskell-cafe] FFI and struct arguments

2008-07-17 Thread Duncan Coutts
On Thu, 2008-07-17 at 13:36 -0300, Felipe Lessa wrote: > I am using hsc2hs currently, but googling about #def with Cabal I > found out that some people were having trouble to make Cabal discover > that hsc2hs had created a new C file. Specifically, bug #245 [1] which > says that the milestone is

Re: [Haskell-cafe] FFI and struct arguments

2008-07-17 Thread Duncan Coutts
On Wed, 2008-07-16 at 22:45 -0300, Felipe Lessa wrote: > Hi, > > I tried googling and searching the haskellwiki about this but wasn't > lucky enough. My question is: is there a way to send struct arguments > to C functions via the FFI or do I need to create a C wrapper? I guess > there isn't, and

Re: [Haskell-cafe] Getting latest GHC-head/libraries takes forever

2008-07-15 Thread Duncan Coutts
On Tue, 2008-07-15 at 19:45 -0500, Austin Seipp wrote: > For the purpose of experimenting with NDP I went through the > process of getting the GHC head from darcs.haskell.org. As > specified in the developer wiki[1], using darcs get is basically > not possible because there're so many patches. So

Re: [Haskell-cafe] Trying to install cabal

2008-07-14 Thread Duncan Coutts
On Thu, 2008-07-10 at 18:53 -0400, Brandon S. Allbery KF8NH wrote: > On 2008 Jul 10, at 14:00, Eric wrote: > > > I have downloaded cabal and am trying to install it but have gotten > > the > > following error message: > > > > C:\cabal\cabal-install-0.5.1>runghc Setup configure Note that Eric i

Re: [Haskell-cafe] Problem installing Cabal-1.4.0.1 with ghc-6.8.3

2008-06-25 Thread Duncan Coutts
On Wed, 2008-06-25 at 10:15 +0200, Sasko Mateski wrote: > I wanted to install cabal-install to check it out. Soon I found out > that it has a dependency on Cabal (>=1.4&&<1.5), so next thing to do > was getting and installing Cabal-1.4.0.1 (since the version coming > with ghc-6.8.3 is 1.2.4.0). B

Re: [Haskell-cafe] Checking packages before upload to Hackage

2008-06-20 Thread Duncan Coutts
On Fri, 2008-06-20 at 12:12 -0400, Gwern Branwen wrote: > On Fri, Jun 20, 2008 at 11:43 AM, Henning Thielemann > <[EMAIL PROTECTED]> wrote: > > > > Is there some command which tests a tar.gz created by 'Setup.lhs sdist' by > > unpacking the archive to say /tmp and compiling and documenting the sou

Re: [Haskell-cafe] cabal-install failure

2008-06-19 Thread Duncan Coutts
On Mon, 2008-06-16 at 13:25 +0100, Claus Reinke wrote: > > The main point of the Program abstraction is about configuring and > > running programs. As it happens some programs are provided by some > > haskell packages (but not all, eg ld, ar, etc). > > > >> option to get version info and code to

Re: [Haskell-cafe] message passing style like in Haskell?

2008-06-19 Thread Duncan Coutts
On Thu, 2008-06-19 at 11:33 +0800, jinjing wrote: > Hi guys, > > This is my second attempt to learn Haskell :) > > Any way here's the code: > > module Dot where > import Prelude hiding ( (.) ) > > (.) :: a -> (a -> b) -> b > a . f = f a > > infixl 9 . Note that if you redefine (.) compositio

Re: [Haskell-cafe] Meaning of "ribbonsPerLine" at Text.PrettyPrint.HughesPJ ?

2008-06-18 Thread Duncan Coutts
On Wed, 2008-06-18 at 13:55 -0700, Evan Laforge wrote: > > byorgey: fons: I can't explain it, all I know is that you must set it > > to 1 or else it does bizarre things > > fons: hahah, ok > > fons: byorgey: that's funny considering its default value is 1.5 > > byorgey: if you set it to 1 then lin

Re: [Haskell-cafe] Using cabal-install

2008-06-18 Thread Duncan Coutts
On Wed, 2008-06-18 at 22:44 +0200, Daniel Fischer wrote: > Is there a tutorial/user's guide for cabal-install somewhere? > My limited google skills haven't found one and I really need it, because > there > MUST be a better way to get a package and its dependencies built and the > haddock docume

[Haskell-cafe] ANNOUNCE: cabal-install 0.5

2008-06-18 Thread Duncan Coutts
cabal-install 0.5 = cabal-install version 0.5 is out: http://haskell.org/cabal/download.html or get it from hackage: http://hackage.haskell.org/cgi-bin/hackage-scripts/package/cabal-install If you are already using a cabal-install pre-release then you can just: $ cabal update $ c

Re: [Haskell-cafe] External query interface to HackageDB?

2008-06-15 Thread Duncan Coutts
On Sat, 2008-06-14 at 10:26 -0400, Dimitry Golubovsky wrote: > Hi, > > Is there any way to query the latest version of a particular package > stored on Hackage, that was successfully built? It is certainly part of the plan. There is currently no convenient way to get at the information. I've bee

Re: [Haskell-cafe] Lazy IO.

2008-06-15 Thread Duncan Coutts
On Sat, 2008-06-14 at 18:18 +0200, Sebastiaan Visser wrote: > Hi, > > I've got a question about lazy IO in Haskell. The most well known > function to do lazy IO is the `hGetContents', which lazily reads all the > contents from a handle and returns this as a regular [Char]. > > The thing with hGe

Re: [Haskell-cafe] Design your modules for qualified import

2008-06-15 Thread Duncan Coutts
On Sat, 2008-06-14 at 19:21 +0100, Sebastian Sylvan wrote: > I think that if GTK did use this system (rather than append the module > name to the function and export them "flatly") a lot of people would > resort to ugly hacks like putting the import statements in a file > somewhere and using the

Re: [Haskell-cafe] cabal-install failure

2008-06-15 Thread Duncan Coutts
On Sat, 2008-06-14 at 11:03 +0100, Claus Reinke wrote: > > http://hackage.haskell.org/trac/hackage/ticket/227 > > > >One problem is that not all build-tools correspond to haskell > >packages. Some do some don't. We have a hard coded list of them > >at the moment (which can

Re: [Haskell-cafe] cabal-install failure

2008-06-14 Thread Duncan Coutts
On Fri, 2008-06-13 at 22:10 -0400, Gwern Branwen wrote: > I think this may be Cabal's fault anyway. The yi.cabal includes the line: > build-tools: alex >= 2.0.1 && < 3 > > in the 'executable yi' section, right after the build-depends, so Yi > is being straightforward and upfront about

Re: [Haskell-cafe] cabal-install failure

2008-06-13 Thread Duncan Coutts
On Fri, 2008-06-13 at 11:19 -0400, Darrin Thompson wrote: > Cabal-install is looking good. It now, for the record, has only two > deps outside of Cabal-1.4. > > I installed cabal-install-0.5 on ubuntu with the haskell.org linux > binary for ghc 6.8.2. > > I then tried cabal-install yi > > Got t

Re: [Haskell-cafe] Difficulty installing hscurses

2008-06-13 Thread Duncan Coutts
On Fri, 2008-06-13 at 05:15 -0400, Dominic Espinosa wrote: > Hello, > > I'm trying to install hscurses on debian-testing. I have ghc6 installed, > which I've written some toy programs with, but I haven't tried to > install any Hackage packages until now. > > hscurses depends on old-time and old-

Re: [Haskell-cafe] Cabal-Install Fails To Compile

2008-06-12 Thread Duncan Coutts
On Thu, 2008-06-12 at 16:07 -0500, Aditya Siram wrote: > Hi all, > I downloaded cabal-install and the cabal-1.4 branch from darcs. The following > error occurs when building: > > runhaskell Setup.hs build > > Building cabal-install-0.4.9... > [19 of 27] Compiling Hackage.SrcDist ( Hackage/SrcDi

Re: [Haskell-cafe] -fvia-C error

2008-06-12 Thread Duncan Coutts
On Thu, 2008-06-12 at 00:07 -0700, Don Stewart wrote: > aeyakovenko: > > any idea what could be causing this error when i add the -fvia-C option > > > > /tmp/ghc32300_0/ghc32300_0.hc:6:23: > > error: SFMT_wrap.h: No such file or directory > > make: *** [release] Error 1 > > > > I am also pa

Re: [Haskell-cafe] -fvia-C error

2008-06-12 Thread Duncan Coutts
On Wed, 2008-06-11 at 23:50 -0700, Anatoly Yakovenko wrote: > any idea what could be causing this error when i add the -fvia-C option > > /tmp/ghc32300_0/ghc32300_0.hc:6:23: > error: SFMT_wrap.h: No such file or directory > make: *** [release] Error 1 Some package you're using is a FFI bind

Re: [Haskell-cafe] blas: ghc-6.8.2: unable to load package `blas-0.4'

2008-06-11 Thread Duncan Coutts
On Tue, 2008-06-10 at 21:38 -0700, Anatoly Yakovenko wrote: > nevermind, i am a little slow today. ghci -lcblas You should not need to do this manually. The blas package should say that it needs this library, in which case ghc and ghci will pick it up automatically. Using "ghci -package foo" is

Re: [Haskell-cafe] Design your modules for qualified import

2008-06-09 Thread Duncan Coutts
On Mon, 2008-06-09 at 16:04 +0200, Ketil Malde wrote: > I think designing modules for qualified-only use is a mistake. I also > think import lists get quite ugly, with multiple instances of > > import qualified Data.Set as S > import Data.Set (Set) > > for multiple - sometimes even

Re: [Haskell-cafe] Re: Fwd: installing happy 1.17

2008-06-07 Thread Duncan Coutts
On Sat, 2008-06-07 at 14:46 -0700, Thomas Hartman wrote: > great, sudo cabal install from inside 1.17 distribution dir now seems > to do the right thing. > > however, after it's done installing (apparently without error) the > happy version is still 1.16 and the happy executable is from 2006. >

Re: [Haskell-cafe] Re: Fwd: installing happy 1.17

2008-06-07 Thread Duncan Coutts
On Sat, 2008-06-07 at 21:20 +0200, Bertram Felgenhauer wrote: > Duncan Coutts wrote: > > The immediate workarounds are: > > * unregister Cabal-1.5.2 > > Better, hide it (that's reversible) - or does that not work with > cabal-install? If Cabal ignored hidden

[Haskell-cafe] Re: Fwd: installing happy 1.17

2008-06-07 Thread Duncan Coutts
On Sat, 2008-06-07 at 18:44 +0100, Duncan Coutts wrote: > Perhaps a better solution is for cabal-install to choose the version of > the Cabal library differently. Of course it has to be within the hard > constraints specified in the .cabal file and on the command line. But > after

[Haskell-cafe] Re: Fwd: installing happy 1.17

2008-06-07 Thread Duncan Coutts
On Sat, 2008-06-07 at 09:36 -0700, Thomas Hartman wrote: > cabal issue? Yes and no. What is happening is that there are several versions of the Cabal library installed. In particular Cabal-1.3.12 and Cabal-1.5.2. The happy package uses build-type Custom so cabal-install compiles the Setup.lhs sc

[Haskell-cafe] ANNOUNCE: Cabal-1.4 release candidate

2008-06-06 Thread Duncan Coutts
Hi everyone, == Cabal-1.4 release candidate == The second release candidate of Cabal-1.4 is out: http://haskell.org/cabal/download.html Please test and report bugs: http://hackage.haskell.org/trac/hackage/ The aim for the Cabal-1.4 release is to get various fixes and improvements into the hands

[Haskell-cafe] Re: Ubuntu and ghc

2008-06-05 Thread Duncan Coutts
On Thu, 2008-06-05 at 09:16 +0100, Simon Marlow wrote: > > As I see it we need both. We need to make it easy to translate cabal > > packages into distro packages. We do have tools to do that at the moment > > for Gentoo, Debian and Fedora. I'm sure they could be improved. > > > > However we cann

Re: [Haskell-cafe] very hard to build darcs with win32 ghc-6.8.2!

2008-06-04 Thread Duncan Coutts
On Wed, 2008-06-04 at 10:26 -1000, Tim Newsham wrote: > I built darcs for win32 recently and it was much more difficult than > it should be. Probably most of the blame goes to ghc-6.8.2 binary > release for win32. Half of the effort is getting the zlib prereq > working. > > Previously to build

Re: [Haskell-cafe] Re: cabal and platform-independent haskell installation management (again) (Re: Re: Ubuntu and ghc)

2008-06-04 Thread Duncan Coutts
On Wed, 2008-06-04 at 17:22 +0200, Achim Schneider wrote: > The question, IMHO, seems to be > > "How would a package manager for a posix-compilant kinetic look like?" http://nixos.org/index.html Duncan ___ Haskell-Cafe mailing list Haskell-Cafe@has

Re: cabal and platform-independent haskell installation management (again) (Re: [Haskell-cafe] Re: Ubuntu and ghc)

2008-06-04 Thread Duncan Coutts
On Wed, 2008-06-04 at 15:14 +0100, Claus Reinke wrote: > > I think that's fundamentally the wrong approach. We shouldn't have to > > build a "Haskell installation manager". Would you also want installation > > managers for Perl, Python, Ruby, C, C++, etc. each with their own different > > use

Re: [Haskell-cafe] Re: Ubuntu and ghc

2008-06-04 Thread Duncan Coutts
On Wed, 2008-06-04 at 15:25 +0200, Achim Schneider wrote: > Well, you have a point but still don't have one. Many of gentoo's > haskell .ebuilds are seriously outdated, eg. wxhaskell still depends on > ghc 6.4. See "Damnit, we need a CPAN" > > The haskell overlay features about 240 packages from

Re: [Haskell-cafe] Re: Ubuntu and ghc

2008-06-04 Thread Duncan Coutts
On Wed, 2008-06-04 at 11:33 +0100, Simon Marlow wrote: > Claus Reinke wrote: > > > - i don't want to have to remove anything explicitly, becausethat > > would mean bypassing the haskell installation managers > > - i would want to see a single haskell installation manager > >for each syst

Re: [Haskell-cafe] Re: Ubuntu and ghc

2008-06-04 Thread Duncan Coutts
On Wed, 2008-06-04 at 14:54 +0200, Ketil Malde wrote: > > You have a point, though, and I wouldn't mind at all cabal-install > > being integrated into portage, > > I'm not too familiar with portage, but I think a better solution is to > provide tools to automatically generate packages for the va

Re: [Haskell-cafe] More on performance

2008-06-04 Thread Duncan Coutts
On Wed, 2008-06-04 at 09:32 +0200, Henning Thielemann wrote: > On Tue, 3 Jun 2008, Don Stewart wrote: > > > I wrote up the second part of the tour of understanding low level > > performance in GHC here, > > > > http://reddit.com/r/programming/info/6lx36/comments/ > > > > Follows on from the d

Re: [Haskell-cafe] What is the maturity of Haskell Web Frameworks

2008-06-03 Thread Duncan Coutts
On Tue, 2008-06-03 at 10:23 -0700, Don Stewart wrote: > A new version of happs was written on a Monday a couple of months ago, > using fastcgi and takusen. We're running it at galois, and you can > find the code on code.haskell.org/hpaste. So not quite what you wanted, > but another data point. T

Re: [Haskell-cafe] ghc 6.8.2 issue

2008-06-03 Thread Duncan Coutts
On Tue, 2008-06-03 at 00:04 -0500, Galchin, Vasili wrote: > Duncan, > > By installing localling, I "runhaskell Setup.hs configure > --prefix=$HOME" plus add local path to LD_LIBRARY_PATH and > LD_RUN_PATH? On Linux, does ghc use .so's or is it linked statically? ghc is linked statically but

Re: [Haskell-cafe] ghc 6.8.2 issue

2008-06-03 Thread Duncan Coutts
On Mon, 2008-06-02 at 23:11 -0500, Galchin, Vasili wrote: > at this point rebuild and install the "unix" package ... > > [EMAIL PROTECTED]:~/FTP/Haskell/bytestring-mmap-0.2.0$ runhaskell > Setup.lhs clean > cleaning... > [EMAIL PROTECTED]:~/FTP/Haskell/bytestring-mmap-0.2.0$ runhaskell > Setup.lh

Re: [Haskell-cafe] cabal install fail for happs-hsp-template

2008-06-02 Thread Duncan Coutts
On Mon, 2008-06-02 at 09:42 -0700, Thomas Hartman wrote: > Can cabal install be made to work for this package? > * > [EMAIL PROTECTED]:~>sudo cabal install happs-hsp-template > [sudo] password for thartman: > cabal: internal error: could not construct a valid install plan. > The proposed (inva

Re: [Haskell-cafe] Implementing ParseChart with Data.Map

2008-06-02 Thread Duncan Coutts
On Mon, 2008-06-02 at 22:35 +0200, Krasimir Angelov wrote: > The problem with this is that both the Map and the Set are traversed > twice. The first time from lookup/member and the second time from > insert. Does someone have an idea how to do this with the current > libraries? > The chart mani

Re: [Haskell-cafe] ghc 6.8.2 issue

2008-06-02 Thread Duncan Coutts
On Mon, 2008-06-02 at 00:07 -0500, Galchin, Vasili wrote: > Hello, > > I have been developing new code for the "unix" package. I have > run into what I think are ghc 6.8.2 anomalies but couldn't see a > pattern. Possibly now I do. I have been using the 32-bit x86 ghc > binary that I downloa

Re: [Haskell-cafe] Re: Damnit, we need a CPAN.

2008-05-30 Thread Duncan Coutts
On Fri, 2008-05-30 at 16:33 +0200, Chaddaï Fouché wrote: > 2008/5/30 Achim Schneider <[EMAIL PROTECTED]>: > > I already was pleasantly surprised when discovering cabal-install, I > > think it deserves some more prominence, or even integration into cabal > > itself, to make everyone aware of the fa

Re: [Haskell-cafe] Copying Arrays

2008-05-30 Thread Duncan Coutts
On Fri, 2008-05-30 at 10:38 +0200, Ketil Malde wrote: > "Johan Tibell" <[EMAIL PROTECTED]> writes: > > >> I guess this is where I don't follow: why would you need more short > >> strings for Unicode text than for ASCII or 8-bit latin text? > > > But ByteStrings are neither ASCII nor 8-bit Latin

Re: [Haskell-cafe] test driving cabal install... cabal install and normal install (runghc Setup) don't mix... two package.conf files...

2008-05-30 Thread Duncan Coutts
On Thu, 2008-05-29 at 20:12 -0700, Philip Neustrom wrote: > I'm having issues trying to get cabal-install (latest darcs) > installed, as well. I'm seeing the message: > > Hackage/Types.hs:19:29: > Module `Distribution.Version' does not export `Dependency' > > which was mentioned on this li

Re: [Haskell-cafe] zlib, missing zlib.h

2008-05-29 Thread Duncan Coutts
On Fri, 2008-05-30 at 01:10 +0200, Marc Weber wrote: > On Thu, May 29, 2008 at 03:51:56PM -0700, Thomas Hartman wrote: > > echo " extra-lib-dirs: ${zlib}/lib" >> zlib.cabal > echo " include-dirs: ${zlib}/include" >> zlib.cabal''; > Try patching the cabal file using something like that

Re: [Haskell-cafe] Damnit, we need a CPAN.

2008-05-29 Thread Duncan Coutts
On Thu, 2008-05-29 at 17:38 +0200, Achim Schneider wrote: > No, wait, there's cabal-install. And it doesn't even depend on 20+ > packages I'd have to install manually. My day, for now, is saved, at > least if portage installs it without hesitation. > > Ah, there it is: > >>> Compiling source > >

Re: [Haskell-cafe] WebSense doesn't like darcs.haskell.org

2008-05-29 Thread Duncan Coutts
On Thu, 2008-05-29 at 18:12 +, Chad Scherrer wrote: > My work uses WebSense to filter viewable pages - I don't have an option. > > I used to be able to get to darcs.haskell.org just fine, but apparently a > /hacking directory was added somewhere, so WebSense put it on the naughty > list. Do

Re: [Haskell-cafe] Copying Arrays

2008-05-29 Thread Duncan Coutts
On Thu, 2008-05-29 at 11:25 -0700, Bryan O'Sullivan wrote: > Tom Harper wrote: > > > Because I'm writing the Unicode-friendly ByteString =p > > Perhaps I'm not understanding. Why wouldn't you use ByteString for I/O, > even if you're writing a different library? After all, ByteString's own > in

Re: [Haskell-cafe] Lazy lists simulated by unboxed mutable arrays

2008-05-28 Thread Duncan Coutts
On Wed, 2008-05-28 at 10:22 +0200, Henning Thielemann wrote: > On Wed, 28 May 2008, Bulat Ziganshin wrote: > > > Hello Henning, > > > > Wednesday, May 28, 2008, 9:51:28 AM, you wrote: > > > >>We could simulate a list with strict elements, i.e. > >> data StrictList a = Elem !a (StrictList

Re: [Haskell-cafe] a build problem ....

2008-05-27 Thread Duncan Coutts
On Tue, 2008-05-27 at 15:33 -0700, Thomas Hartman wrote: > I think dist gets populated when you do build. Actually we also stash the configuration in ./dist/setup-config so that gets created at configure time. Galchin's problem is that something goes wrong during the configure and so nothing get

Re: [Haskell-cafe] strange cabal error

2008-05-24 Thread Duncan Coutts
On Fri, 2008-05-23 at 15:07 -0500, John Lato wrote: > Hello, > > I recently ran into a strange cabal error. When trying to configure a > package (leksah 0.1.1) I get the following error: > > MacBook-Pro:leksah-0.1.1 jwl$ runhaskell Setup.lhs configure > Configuring leksah-0.1.1... > Setup.lhs:

Re: Re[2]: [Haskell-cafe] Announce: ghc-core, command line pager for reading GHC Core

2008-05-23 Thread Duncan Coutts
On Fri, 2008-05-23 at 21:24 +0200, Henning Thielemann wrote: > On Fri, 23 May 2008, Bulat Ziganshin wrote: > > > Hello Henning, > > > > Friday, May 23, 2008, 8:31:24 PM, you wrote: > > > >> would guarantee speed in every case. Or I can SPECIALISE the function, > >> then the function will only be

Re: [Haskell-cafe] Ubuntu and ghc

2008-05-22 Thread Duncan Coutts
On Wed, 2008-05-21 at 17:32 -0500, Galchin, Vasili wrote: > Hello, > > > https://bugs.launchpad.net/ubuntu/+source/gtk2hs/+bug/229489 this > is almost identical to my problem. I am just trying to help others on > this list who are using Ubuntu Linux to avoid my predicament! I had that prob

Re: [Haskell-cafe] How does GHC read UNICODE.

2008-05-20 Thread Duncan Coutts
On Tue, 2008-05-20 at 09:30 +0200, Ketil Malde wrote: > Don Stewart <[EMAIL PROTECTED]> writes: > > > You can use either bytestrings, which will ignore any encoding, > > Uh, I am hesitant to voice my protest here, but I think this bears > some elaboration: > > Bytestrings are exactly that, str

Re: [Haskell-cafe] Re: My experience setting up Haskell up for GUI development

2008-05-19 Thread Duncan Coutts
On Sun, 2008-05-18 at 23:09 -0400, Braden Shepherdson wrote: > I run Vista Business 32-bit on my desktop, and I installed Gtk2Hs using > that LSystemSetup.exe installer. I don't have a link handy, I apologize. > That's a handy way to install with a few clicks for non-programmers. I had no idea

Re: [Haskell-cafe] Re: ghc on Ubuntu Linux?

2008-05-18 Thread Duncan Coutts
On Sun, 2008-05-18 at 22:49 +0200, Josef Svenningsson wrote: > On Sun, May 18, 2008 at 3:24 AM, Galchin, Vasili <[EMAIL PROTECTED]> wrote: > > Hi Josef, > > > > What generates dist/setup-config? When I run "runhaskell Setup.hs > > configure", nothing including dist/setup.config gets generated

Re: [Haskell-cafe] My experience setting up Haskell up for GUI development

2008-05-18 Thread Duncan Coutts
On Mon, 2008-05-19 at 00:02 +0300, Yitzchak Gale wrote: > Hi Bulat, > > Bulat Ziganshin wrote: > > if main part of your program is GUI - it's better to stick with C# and > > all its visual bells and whistles. the only good thing with gtk2hs is > > that you got Linux portability for free. actually

Re: [Haskell-cafe] My experience setting up Haskell up for GUI development

2008-05-18 Thread Duncan Coutts
On Mon, 2008-05-19 at 00:13 +0400, Bulat Ziganshin wrote: > Hello Ben, > > Sunday, May 18, 2008, 10:26:09 PM, you wrote: > > > So, in practice, do other people write GUI apps with Haskell on > > Windows? And if they do, how do they do it? I feel I've got to the > > stage where I need a concrete

Re: Re[4]: [Haskell-cafe] Fun with Darcs

2008-05-18 Thread Duncan Coutts
On Mon, 2008-05-19 at 00:35 +0400, Bulat Ziganshin wrote: > Hello Duncan, > > Friday, May 16, 2008, 2:05:53 AM, you wrote: > > > Of course if you're deploying a Windows program that uses gtk2hs then > > using just the runtime dlls is just the right thing to do. Though for > > that case we provid

Re: [Haskell-cafe] My experience setting up Haskell up for GUI development

2008-05-18 Thread Duncan Coutts
On Sun, 2008-05-18 at 19:26 +0100, Ben Arnold wrote: > I'm running Windows Vista and I've been trying to set up an > environment for writing GUI applications. > > A Google search pointed me at two major GUI toolkits for Haskell: > gtk2hs and wxHaskell. > > I started with gtk2hs. The installation

Re: [Haskell-cafe] Performance: MD5

2008-05-18 Thread Duncan Coutts
On Sun, 2008-05-18 at 11:20 +0100, Andrew Coppin wrote: > > So, as Bulat says, explain why your code should have similar performance > > to the C version. > > Because it executes the same algorithm? I mean, there's essentially only > one way round that you can perform the MD5 algorithm, so it j

Re: [Haskell-cafe] A point in favour of -XOverlappingInstances (and -XTypeSynonymInstances)

2008-05-17 Thread Duncan Coutts
On Sat, 2008-05-17 at 15:12 +0200, Achim Schneider wrote: > Token.hs:103:15: > Overlapping instances for Show (SourcePos, Tok) > arising from a use of `anyToken' at Token.hs:103:15-22 > Matching instances: > instance (Show a, Show b) => Show (a, b) -- Defined in GHC.Show >

Re: [Haskell-cafe] runInteractiveCommand: program ends before writing or reading all the output

2008-05-16 Thread Duncan Coutts
On Thu, 2008-05-15 at 21:04 -0400, Olivier Boudry wrote: > I tried to place a "length text `seq`" before the mapM_ writeExport to > force the process output to be read but the result was even worst > (only one line printed). Apparently withtout the `evaluate` function > it causes more troubles th

Re: [Haskell-cafe] runInteractiveCommand: program ends before writing or reading all the output

2008-05-15 Thread Duncan Coutts
On Thu, 2008-05-15 at 13:40 -0400, Olivier Boudry wrote: > Hi all, > > It's the first time I use the runInteractiveCommand and I was probably > bitten by laziness. Yes. I think Philip diagnosed the problem correctly. As an example let me show you as an example how we use it in Cabal: rawSystem

Re: [Haskell-cafe] Fun with Darcs

2008-05-15 Thread Duncan Coutts
On Wed, 2008-05-14 at 21:49 +0100, Andrew Coppin wrote: > At this point, my best guess is that the unofficial Gtk2hs binary is > broken somehow. [Although I don't recall hearing anybody yelling about > it...] Maybe tomorrow I'll try again on my other box that has an older > GHC on it and see h

Re: Re[2]: [Haskell-cafe] Fun with Darcs

2008-05-15 Thread Duncan Coutts
On Thu, 2008-05-15 at 01:01 +0400, Bulat Ziganshin wrote: > Hello Andrew, > > Thursday, May 15, 2008, 12:49:32 AM, you wrote: > > > touch. Now, let's see what this IDE actually looks li-- oh you have GOT > > to be KIDDING me! It can't find the right GTK DLL?!? > > gtk2hs includes *developer* gt

Re: [Haskell-cafe] GHC predictability

2008-05-12 Thread Duncan Coutts
On Mon, 2008-05-12 at 20:01 +0100, Andrew Coppin wrote: > In short, as a fairly new Haskell programmer, I find it completely > impossibly to write code that doesn't crawl along at a snail's pace. > Even when I manage to make it faster, I usually have no clue why. (E.g., > adding a seq to a merg

<    3   4   5   6   7   8   9   10   11   12   >