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 happily installed

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 speaking -

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 Platform is

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, Thanks, this worked (mostly). Although I had to change the line

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 niklas.broberg at gmail.com writes: The gtk frontend should not suffer from this: yi -fgtk C:\Documents and Settings\Niklas Brobergyi -fgtk yi: exception :: System.Glib.GError.GError I'm out

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 commands, I get

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 as

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 tried replacing

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 OpenGLco 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

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 does your

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 UltraSPARC II on my desktop running Solaris 2.10

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

[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

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't

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 your

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 wondered about that.

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 case,

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 Posix AIO 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] 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] 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 I

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.1runghc Setup configure Note that Eric is talking

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.41.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). But

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

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 (.) composition to be

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 extract it

[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 $

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

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 lineLength

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 be

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 C

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

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 been

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 its

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-locale

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 this

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 binding

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 passing these

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/SrcDist.hs,

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 the

[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

[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 that perhaps

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 packages then you could never install

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. This

[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

[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 cannot expect

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 discussion

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 various

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 system, I

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 alex

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 user

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

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 zlib

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.lhs

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 when

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.

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 downloaded

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

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 (invalid)

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 text!

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 list

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 fact that

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 internals

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 you

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 in

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: echoextra-lib-dirs: ${zlib}/lib zlib.cabal echoinclude-dirs: ${zlib}/include zlib.cabal''; Try patching the cabal file using something like that. Actually

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 a) | End

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

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: ghc

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 problem

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, strings of

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] 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 just

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: 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 provide the

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: [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, people

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. ?? Ok,

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 than it

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* gtk2

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 how

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:

Re: [Haskell-cafe] help(!!)

2008-05-12 Thread Duncan Coutts
On Mon, 2008-05-12 at 04:00 -0500, Galchin, Vasili wrote: Hello, As I said in a Friday posting, I changed the version # of the cabal file that I am using, unix.cabal. Now my build environment is broken and I am dead in the water: [EMAIL PROTECTED]:~/FTP/Haskell/unix-2.2.0.0$

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

Re: [Haskell-cafe] runInteractiveProcess and hGetLine on Windows

2008-05-07 Thread Duncan Coutts
On Wed, 2008-05-07 at 08:33 -0700, Bryan O'Sullivan wrote: David Roundy wrote: This is the correct behavior (although it's debatable whether kpsewhich should be outputting in text mode). I think it would be more accurate to say that runInteractiveProcess has an inadequate API, since

Re: [Haskell-cafe] runInteractiveProcess and hGetLine on Windows

2008-05-07 Thread Duncan Coutts
On Wed, 2008-05-07 at 08:46 -0700, David Roundy wrote: On Wed, May 07, 2008 at 08:33:23AM -0700, Bryan O'Sullivan wrote: David Roundy wrote: This is the correct behavior (although it's debatable whether kpsewhich should be outputting in text mode). I think it would be more accurate

Re: [Haskell-cafe] runInteractiveProcess and hGetLine on Windows

2008-05-07 Thread Duncan Coutts
On Thu, 2008-05-08 at 00:12 +0200, Harri Kiiskinen wrote: Thank You all for the lively discussion, and of course, a nice and simple answer to my problem: On Wed, 2008-05-07 at 21:17 +0100, Duncan Coutts wrote: (inh,outh,errh,pid) - runInteractiveProcess path args Nothing Nothing -- We

Re: [Haskell-cafe] A Cabal problem

2008-05-06 Thread Duncan Coutts
On Tue, 2008-05-06 at 09:43 -0400, Mario Blazevic wrote: Trevor Elliott wrote: Cabal doesn't pass the --main-is option, I believe because it is specific to GHC. What you could do is add this flag in the ghc-options field of your executable in the cabal file, like this: ghc-options:

Re: [Haskell-cafe] A Cabal problem

2008-05-05 Thread Duncan Coutts
On Mon, 2008-05-05 at 13:37 -0400, Mario Blazevic wrote: Trevor Elliott wrote: Hi Mario, Is the name of the module within the Shell.hs file Main? If not, that could be your problem. You may be right, the module's name is Shell, not Main. GHC does not have problem with that

Re: [Haskell-cafe] Re: HaXml and the XHTML 1.0 Strict DTD

2008-04-30 Thread Duncan Coutts
On Wed, 2008-04-30 at 11:32 +0100, Malcolm Wallace wrote: Peter Gammie [EMAIL PROTECTED] wrote: The most-recent darcs version relies on a newer ByteString than I have, so it is not easy for me to test it. I believe there was a patch to fix this. Apparently only one version of the

Re: [Haskell-cafe] question about GHC and Unicode

2008-04-27 Thread Duncan Coutts
On Sun, 2008-04-27 at 21:44 +0100, Malcolm Wallace wrote: Ian Lynagh wrote a pure haskell readline implementation a while ago, I think that was Malcolm Wallace. ... and it is part of the readline package! See System.Console.SimpleLineEditor. Needless to say, it is far from

Re: [Haskell-cafe] Why doesn't GHC use the Hugs definition of splitAt to avoid traversing the first part of the list twice?

2008-04-26 Thread Duncan Coutts
On Fri, 2008-04-25 at 17:30 +0100, Richard Kelsall wrote: I've just been investigating a performance oddity in using splitAt on a long stream of random numbers. I don't understand why GHC appears to want to traverse the first part of the list twice. GHC seems to implement the splitAt

Re: [Haskell-cafe] Hackage being too strict?

2008-04-23 Thread Duncan Coutts
Just to keep haskell-cafe updated on this issue... On Tue, 2008-04-15 at 22:15 -0500, John Goerzen wrote: When I went to make my upload of MissingH 1.0.1, Hackage rejected it, saying: Instead of 'ghc-options: -XPatternSignatures' use 'extensions: PatternSignatures' Now fixed! (Well, at

Re: [Haskell-cafe] Hackage being too strict?

2008-04-21 Thread Duncan Coutts
On Mon, 2008-04-21 at 14:30 -0400, Brandon S. Allbery KF8NH wrote: On Apr 21, 2008, at 7:38 , Hans van Thiel wrote: On Fri, 2008-04-18 at 16:19 +0100, Duncan Coutts wrote: If there are any that you think are rejecting legitimate packages then do complain (as in this thread

Re: [Haskell-cafe] Hackage being too strict?

2008-04-21 Thread Duncan Coutts
On Mon, 2008-04-21 at 13:38 +0200, Hans van Thiel wrote: Configuring Emping-0.5.1... cabal-setup: At least the following dependencies are missing: gtk -any I'll have to leave it at that, since my local Cabal version does configure and build, and I obviously can't use Hackage as a

Re: [Haskell-cafe] letting go of file handles and Data.Binary

2008-04-20 Thread Duncan Coutts
On Sun, 2008-04-20 at 14:02 -0700, Ben wrote: hi all -- using binary 0.4.1 on ghc 6.8.2, vista 64 sp1. consider the following program: import System.Directory import Data.Binary main = do let dat = [1..10]::[Int] fname = foo.dat encodeFile fname dat dat2 - decodeFile

Re: [Haskell-cafe] letting go of file handles and Data.Binary

2008-04-20 Thread Duncan Coutts
On Sun, 2008-04-20 at 14:24 -0700, Bryan O'Sullivan wrote: Doh! For all that I wrote about encodeFile, substitute decodeFile. Indeed the version of encodeFile you wrote should be exactly identical to the original because the lazy bytestring writeFile already uses bracket like that: writeFile

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