Re: [Haskell-cafe] generalized list comprehensions

2008-11-10 Thread Duncan Coutts
On Sun, 2008-11-09 at 19:18 +, Andrew Coppin wrote: Derek Elkins wrote: As far as I can tell, no one actually uses parallel list comprehensions. With any luck, the same will be true for generalized list comprehensions. Generalised? Heck, I don't use list comprehension at all!

Re: [Haskell-cafe] generalized list comprehensions

2008-11-10 Thread Duncan Coutts
On Mon, 2008-11-10 at 18:20 +, Andrew Coppin wrote: Mitchell, Neil wrote: In general: if boolean then [value] else [] Can be written as: [value | boolean] Is there any specific reason why this is valid? It is due to the rules for the translation of list comprehensions:

Re: [Haskell-cafe] generalized list comprehensions

2008-11-10 Thread Duncan Coutts
On Mon, 2008-11-10 at 18:19 +, Andrew Coppin wrote: I don't actually use *lists* all that much - or at least not list transformations. And if I'm going to do something complicated, I'll usually write it as a do-expression rather than a comprehension. Just a random example out of

Re: [Haskell-cafe] Histogram creation

2008-11-10 Thread Duncan Coutts
On Mon, 2008-11-10 at 18:05 +0100, Bertram Felgenhauer wrote: Alexey Khudyakov wrote: Hello! I'm tryig to write efficient code for creating histograms. I have following requirements for it: 1. O(1) element insertion 2. No reallocations. Thus in place updates are needed.

[Haskell-cafe] Re: [Haskell] ANNOUNCE: Haddock version 2.4.0

2008-11-06 Thread Duncan Coutts
On Thu, 2008-11-06 at 00:21 +0100, David Waern wrote: -- Haddock 2.4.0 A new version of Haddock, the Haskell documentation tool, is out. This is a later version than the one shipped with GHC 6.10.1,

Re: [Haskell-cafe] Making 'community' server our social network

2008-11-03 Thread Duncan Coutts
On Sun, 2008-11-02 at 23:43 -0200, Maurí­cio wrote: Then I thought community.haskell.org could offer a default darcs repositories for all users named after their owners. For instance, if you want to check my personal files you would do: darcs get http://code.haskell.org/MauricioAntunes

Re: [Haskell-cafe] Cairo build fail on OS X Leapord

2008-11-03 Thread Duncan Coutts
On Fri, 2008-10-31 at 14:55 -0400, Jefferson Heard wrote: Installing gtk2hs from MacPorts on a clean mac: svgcairo/Graphics/Rendering/Cairo/SVG.chs:201:2: Couldn't match expected type `()' against inferred type `CInt' The latest major release of the cairo C lib changed the API to return

Re: [Haskell-cafe] Cairo build fail on OS X Leapord

2008-11-03 Thread Duncan Coutts
seem to recall someone saying that's the case) then you'll have to pick the second option. Duncan On Mon, Nov 3, 2008 at 5:59 AM, Duncan Coutts [EMAIL PROTECTED] wrote: On Fri, 2008-10-31 at 14:55 -0400, Jefferson Heard wrote: Installing gtk2hs from MacPorts on a clean mac: svgcairo

Re: [Haskell-cafe] huge single file syncronization

2008-11-03 Thread Duncan Coutts
On Mon, 2008-11-03 at 22:16 +0100, Alberto G. Corona wrote: I need to backup my ubuntu-VMWare image frequently (5 GBits) . I need to know if exist such a utility (in haskell or not) for single file syncronization. I don´t want to reinvent te weel, but I think that it is a few lines of

[Haskell-cafe] ANNOUNCE: zlib and bzlib 0.5 releases

2008-11-02 Thread Duncan Coutts
I'm pleased to announce updates to the zlib and bzlib packages. The releases are on Hackage: http://hackage.haskell.org/cgi-bin/hackage-scripts/package/zlib http://hackage.haskell.org/cgi-bin/hackage-scripts/package/bzlib What's new == What's new in these releases is that the extended

Re: [Haskell-cafe] ANNOUNCE: zlib and bzlib 0.5 releases

2008-11-02 Thread Duncan Coutts
On Sun, 2008-11-02 at 19:07 +0300, Bulat Ziganshin wrote: Hello Duncan, Sunday, November 2, 2008, 6:46:00 PM, you wrote: People have also asked for a continuation style api to give more control over dynamic behaviour like flushing the compression state (eg in a http server).

Re: [Haskell-cafe] Poll: Do you need to be able to build darcs from source on GHC 6.6?

2008-10-30 Thread Duncan Coutts
On Thu, 2008-10-30 at 12:16 +1100, Trent W. Buck wrote: David Roundy [EMAIL PROTECTED] writes: And as far as bundled versions, it's the desire to *remove* a bundled version that's apparently at issue. I'm not sure why this is considered desirable, but apparently some folks feel strongly

Re: [Haskell-cafe] Poll: Do you need to be able to build darcs from source on GHC 6.6?

2008-10-29 Thread Duncan Coutts
On Mon, 2008-10-27 at 19:24 -0700, Jason Dagit wrote: Hello, I would like to find out if any darcs users who build from the source are still using ghc 6.6? I'd just like to point out (again ;-) ) than it's not that hard to support older platforms. The only constraint is that people not

Re: [Haskell-cafe] hackage feature request: revision control location

2008-10-25 Thread Duncan Coutts
On Sat, 2008-10-25 at 06:37 +0200, Henning Thielemann wrote: On Fri, 24 Oct 2008, zooko wrote: Hi folks: I'm trying to use hackage/cabal/cabal-install, and I have a feature request: it would be nice if the metadata about the package, which is displayed on e.g.

Re: [Haskell-cafe] any idea why cabal install cabal-install cant update itself in windows?

2008-10-23 Thread Duncan Coutts
On Wed, 2008-10-22 at 19:56 -0700, Anatoly Yakovenko wrote: C:\Documents and Settings\anatolyycabal install cabal-install Resolving dependencies... 'cabal-install-0.6.0' is cached. Configuring cabal-install-0.6.0... Preprocessing executables for cabal-install-0.6.0... Building

Re: [Haskell-cafe] Cabal warning

2008-10-22 Thread Duncan Coutts
On Tue, 2008-10-21 at 23:36 -0700, Peter Higley wrote: I had the same problem on a Mac system, change GHC to ghc and things will work. I didn't even think that it was an actual bug! Ticket #379 reports the problem. Thanks for reporting that. Duncan

Re: [Haskell-cafe] Build without install, using cabal

2008-10-21 Thread Duncan Coutts
On Mon, 2008-10-20 at 17:04 -0200, Mauricio wrote: Hi, I would like to include a few source files as 'executable' sections in a .cabal package description. However, although I do want to use main=mainDefault features, I do not want those packages to be installed when I run 'Setup.hs

Re: [Haskell-cafe] Cabal warning

2008-10-21 Thread Duncan Coutts
On Wed, 2008-10-22 at 00:05 +0200, Henk-Jan van Tuyl wrote: L.S., I keep getting the following warning for each cabal install command: Warning: Error parsing config file C:\Documents and Settings\[User]\Application Data\cabal\config: On line 1: GHC Warning: Using default

Re: [Haskell-cafe] Re: ghc error: requested module name differs from name found in interface file

2008-10-21 Thread Duncan Coutts
On Tue, 2008-10-21 at 09:41 -0500, Larry Evans wrote: Just that one little piece of information, that |cabal install| , by default, installs in ~/.cabal and then enables ghc to look there for packages, would have saved an awful lot of time :( Where would you like that information to have been

Re: [Haskell-cafe] Help converting Perl to Haskell

2008-10-21 Thread Duncan Coutts
On Tue, 2008-10-21 at 20:33 -0700, Jason Dagit wrote: Correct me if I'm wrong, but if I want to make this work on windows I can't use System.Posix, right? If so, what is the portable way to set environment variables? I see[1] that getEnv exists in System.Environment, but setEnv is in

Re: [Haskell-cafe] package question/problem

2008-10-19 Thread Duncan Coutts
On Sat, 2008-10-18 at 23:38 -0500, Galchin, Vasili wrote: Hi Duncan, I was under the impression that HDBC doesn't support myqsl?? I believe it works via ODBC. But perhaps you can persuade Frederik Eaton to make new working releases of HSQL. Duncan

Re: [Haskell-cafe] is 256M RAM insufficient for a 20 millionelement Int/Int map?

2008-10-19 Thread Duncan Coutts
On Sun, 2008-10-19 at 16:05 -0700, Don Stewart wrote: I'd like them strict and specialised, So that: data IntMap a = Nil | Tip {-# UNPACK #-} !Key a | Bin {-# UNPACK #-} !Prefix {-# UNPACK #-} !Mask !(IntMap a) !(IntMap a) applied as so,

Re: [Haskell-cafe] package question/problem

2008-10-18 Thread Duncan Coutts
On Fri, 2008-10-17 at 18:23 -0500, Galchin, Vasili wrote: Hello, I am trying to cabal install HSQL. I am using ghc 6.8.2. The simple answer is that the package is unmaintained and has not been updated to work with ghc 6.8.x. You can either use HDBC instead or fix HSQL by applying one of

Re: [Haskell-cafe] Re: Ubuntu Haskell

2008-10-16 Thread Duncan Coutts
On Tue, 2008-10-14 at 11:25 +0100, Magnus Therning wrote: It seems to me that it adds confusion (two ways of installing things rather than one) while reducing flexibility and 'freshness' of installation. To me it adds simplicity. I might be developing an in-house tool at work, having

Re: [Haskell-cafe] Monadic Floating Point [was: Linking and unsafePerformIO]

2008-10-15 Thread Duncan Coutts
On Thu, 2008-10-16 at 01:24 +0200, Ariel J. Birnbaum wrote: On Wednesday 15 October 2008 05:21:04 John Dorsey wrote: Should all floating point numerals be in the IO Monad? I'm deviating from the thread's topic, but I tend to agree with this one. Maybe not IO directly, but some kind of

Re: [Haskell-cafe] There is something wrong in derive-0.1.2 package.

2008-10-14 Thread Duncan Coutts
On Tue, 2008-10-14 at 13:51 +0800, Magicloud wrote: Sigh again, something that always makes me think that cabal is unusable ~/.cabal/lib/HTTP-3001.1.3/ghc-6.8.3/libHSHTTP-3001.1.3.a(Browser.o)(.text+0x5aa6): In function `rp46_info': : undefined reference to

Re: [Haskell-cafe] I do not want to be a bitch, but ghc-6.8.3 and haskell binary policy are really horrible.

2008-10-14 Thread Duncan Coutts
On Wed, 2008-10-15 at 09:25 +0800, Magicloud wrote: Thank you for your reply. So the main information I got is that cabal is not safe. And my problems are all related to cabal, I think, dependency, ABI version You're quite right that Cabal does not track ABI versions. So it is quite

[Haskell-cafe] Re: 2008-10-12 Hackage status with GHC 6.10 release candidate

2008-10-13 Thread Duncan Coutts
On Mon, 2008-10-13 at 10:54 -0700, Don Stewart wrote: marlowsd: Don Stewart wrote: Note that these builds are with soft deps, provided on hackage, base 4 parsec 3 HaXml == 1.13.* QuickCheck 2 which train cabal-install to build a larger set of packages.

Re: [Haskell-cafe] Hackage and GUI (was Hackage status with GHC 6.10 release candidate)

2008-10-13 Thread Duncan Coutts
On Mon, 2008-10-13 at 16:15 +0200, Hans van Thiel wrote: What's the status of Gtk2Hs with regard to Cabal? Is it correct that not one of the applications on Hackage, and there are some, uses or can use a GUI at this point in time? Gtk2Hs still does not use Cabal as its build system. With the

Re: [Haskell-cafe] There is something wrong in derive-0.1.2 package.

2008-10-13 Thread Duncan Coutts
On Tue, 2008-10-14 at 12:58 +0800, Magicloud wrote: Hi, I wanted to install it with cabal. Well $ cabal install derive Resolving dependencies... cabal: Couldn't read cabal file ./derive/0.1.2/derive.cabal As I traced a little, it seemed that line: 'build-depends: base == 4.*, syb'

[Haskell-cafe] Re: 2008-10-13 Hackage status with GHC 6.10 release candidate

2008-10-13 Thread Duncan Coutts
On Mon, 2008-10-13 at 22:08 -0700, Don Stewart wrote: Using GHC 6.10 RC from today, Cabal 1.6 and cabal-install 1.16, of 682 libraries and apps tried in total, Note that's cabal-install-0.6 :-) 1 UnpackFailed I've diagnosed this one. It will be fixed in the next cabal-install point

Re: [Haskell-cafe] Still stacking monad transformers

2008-10-12 Thread Duncan Coutts
On Sun, 2008-10-12 at 18:08 +0100, Andrew Coppin wrote: I am becoming extremely frustrated now. The task I want to perform is simple, yet I simply cannot make Haskell do what I want. I've given up hope of ever getting my program to handle infinite result sets. That means I can make do with

Re: [Haskell-cafe] Cabal: error on configure

2008-10-10 Thread Duncan Coutts
On Tue, 2008-10-07 at 15:50 -0400, David Barton wrote: OK, I suspect this is a real newbie error, but please have mercy. I have downloaded and installed cabal (at least it responds to the --help command from the command line). Yet when I do, say (to give a real example): cabal configure

Re: [Haskell-cafe] Libraries in home dir

2008-10-09 Thread Duncan Coutts
On Thu, 2008-10-09 at 10:08 -0300, Mauricio wrote: Hi, I want to use a few libraries from hackage and have already download and built them. Can I install those libraries somewhere in my home dir (I want to avoid installing as root) so that ghc can find them? If so, which options should

Re: [Haskell-cafe] is the a way to reinstall a package with cabal install?

2008-10-09 Thread Duncan Coutts
On Thu, 2008-10-09 at 09:42 -0700, Anatoly Yakovenko wrote: is the a way to reinstall a package with cabal install? I want to add profiling support to a libarary. Yes. With cabal-install-0.5.2 and later: $ cabal install foobar --reinstall --enable-library-profiling If you always want

[Haskell-cafe] Re: [Haskell] Catching error / making library functions monadic (in failure)

2008-10-08 Thread Duncan Coutts
On Wed, 2008-10-08 at 18:07 +0200, Philip K.F. Hölzenspies wrote: I think this is the core problem I have. Really, error should be implemented as fail, rather than vice versa. I see why this doesn't work, because it would type error :: Monad m = String - m a even though the whole idea

Re: [Haskell-cafe] After upgrade bytestring to 0.9.1.3, my program cannot run.

2008-10-07 Thread Duncan Coutts
On Mon, 2008-10-06 at 20:21 -0700, Don Stewart wrote: magicloud.magiclouds: Just a simple text process program. When I runhaskell it. I got: GHCi runtime linker: fatal error: I found a duplicate definition for symbol fps_minimum whilst processing object file

Re: [Haskell-cafe] Help me prove macid can scale! (Macid stress tests results for happs-tutorial toy job board disappointing so far.)

2008-10-05 Thread Duncan Coutts
On Sun, 2008-10-05 at 15:57 -0700, Jason Dusek wrote: I don't want to be contrarian, but I guess I can't help myself. Does MACID have anything to say about failover and replication? Isn't that more important than volume? HAppS does failover and replication within a cluster. They're working

Re: [Haskell-cafe] monadic parser with Happy and Alex

2008-10-04 Thread Duncan Coutts
On Sat, 2008-10-04 at 17:05 +0200, Manlio Perillo wrote: Hi. I have completed a draft of a CSS lexer, using Alex. http://hg.mperillo.ath.cx/haskell/webtools/file/tip/src/CSS/Lexer.x The lexer use the posn wrapper. Now I'm starting to write the parser with Happy, however for the final

Re: [Haskell-cafe] cabal upgrade

2008-10-01 Thread Duncan Coutts
On Wed, 2008-10-01 at 01:59 +0200, Cetin Sert wrote: A reminder: When I wanted to upgrade to yi 0.4.6.2, I needed to download the new package list cabal update #download list of new packages cabal upgrade #make any upgrades Note that 'cabal upgrade' upgrades everything

Re: [Haskell-cafe] Hackage Build Failures

2008-10-01 Thread Duncan Coutts
On Wed, 2008-10-01 at 03:04 +0200, Cetin Sert wrote: Hi, what is the best action to take if a package from hackage fails to build? Is there a recommended/established common way to deal with build failures/runtime bugs etc.? Most packages specify a maintainer which is conventionally an email

Re: [Haskell-cafe] cabal upgrade

2008-10-01 Thread Duncan Coutts
On Wed, 2008-10-01 at 08:58 +0100, Malcolm Wallace wrote: When I wanted to upgrade to yi 0.4.6.2, I needed to download the new package list cabal update #download list of new packages cabal upgrade #make any upgrades I never knew there was a 'cabal update' command,

Re: [Haskell-cafe] cabal upgrade

2008-10-01 Thread Duncan Coutts
On Wed, 2008-10-01 at 20:53 +0200, Svein Ove Aas wrote: On Wed, Oct 1, 2008 at 7:54 PM, Duncan Coutts Because we actually consult the index of available packages more often than you think. Every time you cabal install in a local directory we make sure all the required packages are available

Re: [Haskell-cafe] cabal upgrade

2008-09-26 Thread Duncan Coutts
On Fri, 2008-09-26 at 10:49 +0200, Achim Schneider wrote: % cabal update Downloading package list from server 'http://hackage.haskell.org/packages/archive' % cabal install pureMD5 All requested packages already installed. Nothing to do. % cabal install pureMD5-0.2.4 Downloading

[Haskell-cafe] OpenSPARC project applicant chosen

2008-09-20 Thread Duncan Coutts
I am very pleased to announce that we have chosen Ben Lippmeier for the OpenSPARC project. Congratulations Ben! Ben will spend three months hacking on GHC to make it perform well on the latest multi-core OpenSPARC chips. I would also like to thank the other people who applied. The reviewers

Re: [Haskell-cafe] OpenSPARC project applicant chosen

2008-09-20 Thread Duncan Coutts
On Sat, 2008-09-20 at 23:50 +0300, Roman Cheplyaka wrote: * Duncan Coutts [EMAIL PROTECTED] [2008-09-20 16:37:08+0100] If you want to follow the progress we will be using the existing ghc development mailing list: http://www.haskell.org/mailman/listinfo/cvs-ghc and a corner of the ghc

Re: [Haskell-cafe] lazy strings and parallel read

2008-09-19 Thread Duncan Coutts
On Fri, 2008-09-19 at 18:46 +0200, Manlio Perillo wrote: Don Stewart ha scritto: manlio_perillo: Hi. After having read http://book.realworldhaskell.org/read/concurrent-and-multicore-programming.html#id676390 I have a doubt about Data.ByteString.Lazy. Why getContents function

Re: [Haskell-cafe] lazy strings and parallel read

2008-09-19 Thread Duncan Coutts
On Fri, 2008-09-19 at 19:50 +0200, Manlio Perillo wrote: But if every function that reads the data uses pread, then this should no more be a problem. Or I'm missing some other thing? If you used something like pread instead of hGetContents then yes that would not involve semi-closing a

Re: [Haskell-cafe] Hackage and HaXml situation

2008-09-18 Thread Duncan Coutts
On Thu, 2008-09-18 at 15:32 -0500, John Goerzen wrote: Hi everyone, We've got a bit of a problem in the community regarding HaXml. This has been brought up before, but never definitively resolved, and it's causing more and more trouble. Over at the HaXml homepage [1], it is stated that

Re: [Haskell-cafe] Library design question

2008-09-18 Thread Duncan Coutts
On Thu, 2008-09-18 at 15:43 -0300, Andre Nathan wrote: My Graph type is the following. data Graph a b = Graph { adjacencies :: Map Int (a, (Map Int b)) , numVertices :: Int , numEdges:: Int } addVertex :: Int - a - State (Graph a b) () addVertex vertex label =

Re: [Haskell-cafe] Re: [Haskell] Heads Up: code.haskell.org is upgrading to darcs 2

2008-09-14 Thread Duncan Coutts
On Sun, 2008-09-14 at 14:41 +0100, Neil Mitchell wrote: Hi Ignore the previous email message, as soon as I sent the email it started working - I guess it was just code.haskell.org server issues. Yes it was unavailable for a short time yesterday. It got rebooted by the hosting company, we're

Re: [Haskell-cafe] Windows console

2008-09-13 Thread Duncan Coutts
On Sat, 2008-09-13 at 13:41 +0100, Andrew Coppin wrote: If you mean how do I compile the ANSI emulator on Windows but the actual ANSI stuff on Unix, most of the magic is in the .cabal file: I simply turn on the C-preprocessor (CPP) and then supply -DWINDOWS on Windows and -DUNIX on

Re: [Haskell-cafe] Erroneous package listings in hackage?

2008-09-13 Thread Duncan Coutts
On Sat, 2008-09-13 at 12:06 +0100, Dougal Stanton wrote: On Sat, Sep 13, 2008 at 1:51 AM, Duncan Coutts [EMAIL PROTECTED] wrote: Perhaps for packages that are installed but not re-installable via Cabal (like cairo, base, ghc etc) it should say something. Do you have any specific

Re: [Haskell-cafe] Hackage checks

2008-09-13 Thread Duncan Coutts
On Sat, 2008-09-13 at 20:36 +0200, Andrea Rossato wrote: Hi, the Hackage upload script performs some checks on the packages being uploaded. In my case, a library, I need to use the cabal generated Paths_package file to access some locale data stored in a data file directory. This

Re: [Haskell-cafe] Erroneous package listings in hackage?

2008-09-12 Thread Duncan Coutts
On Fri, 2008-09-12 at 14:18 +0200, Henk-Jan van Tuyl wrote: On Fri, 12 Sep 2008 13:21:59 +0200, Dougal Stanton $ cabal list | less ... * cairo Latest version installed: 0.9.13 Homepage: http://haskell.org/gtk2hs/ License: BSD3 ... $ cabal install cairo

Re: [Haskell-cafe] Hackage policy question

2008-09-10 Thread Duncan Coutts
On Wed, 2008-09-10 at 10:26 +0100, Ross Paterson wrote: On Tue, Sep 09, 2008 at 10:59:17PM +, Duncan Coutts wrote: The .tar.gz packages are pristine and must not change, however the .cabal file that is kept in the hackage index could change and that information will be reflected both

Re: [Haskell-cafe] Hackage policy question

2008-09-10 Thread Duncan Coutts
On Wed, 2008-09-10 at 12:09 +0200, Ketil Malde wrote: Duncan Coutts [EMAIL PROTECTED] writes: So we should think about how to make it less confusing. Perhaps like distributors use an extra revision number we should do the same. I had hoped that would not be necessary but that's probably

Re: [Haskell-cafe] Hackage policy question

2008-09-10 Thread Duncan Coutts
On Wed, 2008-09-10 at 11:49 -0400, Brandon S. Allbery KF8NH wrote: On 2008 Sep 10, at 6:48, Wolfgang Jeltsch wrote: Am Mittwoch, 10. September 2008 11:47 schrieben Sie: So we should think about how to make it less confusing. Perhaps like distributors use an extra revision number we should

[Haskell-cafe] Heads Up: code.haskell.org is upgrading to darcs 2

2008-09-10 Thread Duncan Coutts
This email is for darcs users in general and in particular for people who host a project on code.haskell.org. What we are doing = We are upgrading /usr/bin/darcs to version 2 on the machine that hosts code.haskell.org. That means it will be used by everyone who uses ssh to push

Re: [Haskell-cafe] Hackage policy question

2008-09-10 Thread Duncan Coutts
On Wed, 2008-09-10 at 18:35 -0400, Brandon S. Allbery KF8NH wrote: On 2008 Sep 10, at 17:51, Duncan Coutts wrote: dependent packages don't get confused when it's re-released. If we're considering modifying hackage's versioning, we should probably decide if we want/need this now instead

Re: [Haskell-cafe] Hackage policy question

2008-09-10 Thread Duncan Coutts
On Wed, 2008-09-10 at 18:53 -0400, Brandon S. Allbery KF8NH wrote: As I understand it, epochs were mainly introduced to cope with un-cooperative upstream maintainers whereas here maintainers already have to specify a version number in the Cabal/Hackage scheme and there's That is one

Re: [Haskell-cafe] Hackage policy question

2008-09-09 Thread Duncan Coutts
On Mon, 2008-09-08 at 16:26 -0700, Iavor Diatchki wrote: Hi, I just noticed that hackage has introduced a new policy to disallow changes to a package without bumping the version. I understand that this is probably a good idea for changes to the source code, but it really would be nice to

Re: the real world of Haskell books (Re: [Haskell-cafe] Online Real World Haskell, problem with Sqlite3 chapters)

2008-09-05 Thread Duncan Coutts
On Fri, 2008-09-05 at 13:04 +0100, Claus Reinke wrote: Now that is real world - problems even before release!-) Seriously, though, what is the RWH authors' plan for tackling the eternal frustration of Haskell book authors, a moving target? There used to be a time when one could guess the

Re: [Haskell-cafe] Hackage - MacPorts?

2008-09-04 Thread Duncan Coutts
On Wed, 2008-09-03 at 17:54 -0400, David Menendez wrote: On Wed, Sep 3, 2008 at 4:14 PM, John MacFarlane [EMAIL PROTECTED] wrote: It would be great if there were an automated or semi-automated way of generating a MacPorts Portfile from a HackageDB package, along the lines of dons'

Re: [Haskell-cafe] Hackage - MacPorts?

2008-09-04 Thread Duncan Coutts
On Thu, 2008-09-04 at 12:09 -0400, David Menendez wrote: On Thu, Sep 4, 2008 at 5:19 AM, Duncan Coutts [EMAIL PROTECTED] wrote: That's exactly the same situation as with Gentoo. We provide a ghc-updater program that re-installs all the existing libs for the new ghc. Gentoo also only

Re: [Haskell-cafe] Parsec 3 Description

2008-09-04 Thread Duncan Coutts
On Thu, 2008-09-04 at 19:41 +0100, Philippa Cowderoy wrote: On Thu, 4 Sep 2008, John Van Enk wrote: I'm looking for a document describing the differences between Parsec 3 and Parsec 2. My google-foo must be off because I can't seem to find one. Does any one know where to find that

Re: [Haskell-cafe] Hackage - MacPorts?

2008-09-04 Thread Duncan Coutts
On Thu, 2008-09-04 at 20:08 -0400, David Menendez wrote: On Thu, Sep 4, 2008 at 4:14 PM, Don Stewart [EMAIL PROTECTED] wrote: That's right, on Arch we just go for what people actually need, i.e.: 1) 1 compiler, GHC 2) GHC comes with the core+extra set, so they're implicitly

Re: [Haskell-cafe] Hackage - MacPorts?

2008-09-03 Thread Duncan Coutts
On Wed, 2008-09-03 at 13:14 -0700, John MacFarlane wrote: It would be great if there were an automated or semi-automated way of generating a MacPorts Portfile from a HackageDB package, along the lines of dons' cabal2arch. Has anyone been working on such a thing? And, are any haskell-cafe

[Haskell-cafe] REMINDER: OpenSPARC project application deadline this Friday

2008-09-02 Thread Duncan Coutts
http://haskell.org/opensparc/ The deadline for applications for the Haskell OpenSPARC project is rapidly approaching. Applications have to be sent to: [EMAIL PROTECTED] by the end of this week, Friday the 5th September. If you want any comments on your application

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

2008-08-29 Thread Duncan Coutts
On Thu, 2008-08-28 at 21:34 +0200, Ben Franksen wrote: Just some raw ideas: What if we had a way to express 'optional dependencies' between packages in a cabal file. Something like 'if package x is installed (and satisfies given version constraints) then add module UseX'. One problem

Re: [Haskell-cafe] Re: problem with cabal for syb-with-class

2008-08-27 Thread Duncan Coutts
On Wed, 2008-08-27 at 12:33 +0100, Claus Reinke wrote: Cabal doesn't have to pass on ghc's messages uninterpreted. That's a lot like implementing a map as a list and complaining about empty list instead of element not found. I see what you're saying, but in practise it's just not

Re: [Haskell-cafe] Re: problem with cabal for syb-with-class

2008-08-26 Thread Duncan Coutts
On Tue, 2008-08-26 at 12:06 +0200, Andrew U. Frank wrote: in fairness, i have to add that i did inadvertetly install version 0.3. of syb-with-class and got the error i still cannot understand. installing version 0.4 did work flawlessly! nevertheless, i would be interested to understand the

Re: [Haskell-cafe] Re: problem with cabal for syb-with-class

2008-08-26 Thread Duncan Coutts
On Tue, 2008-08-26 at 14:30 +0100, Dougal Stanton wrote: On Tue, Aug 26, 2008 at 2:22 PM, Duncan Coutts [EMAIL PROTECTED] wrote: So when ghc finds that one of your modules needs to import something that is not in one of the given packages it says that it's in another package

Re: [Haskell-cafe] Re: problem with cabal for syb-with-class

2008-08-26 Thread Duncan Coutts
On Tue, 2008-08-26 at 15:53 +0100, Claus Reinke wrote: GHC knows what the problem is but it's just following orders. Cabal gave the orders but doesn't know there is a problem. Since you said don't hold your breath for Cabal's dependencies: Cabal doesn't have to pass on ghc's messages

Re: [Haskell-cafe] ANN: zip-archive 0.0

2008-08-26 Thread Duncan Coutts
On Mon, 2008-08-25 at 23:22 -0700, John MacFarlane wrote: I've written a library, zip-archive, for dealing with zip archives. Great. I saw your query about this from a month ago. Haddock documentation (with links to source code): http://johnmacfarlane.net/zip-archive/ Darcs repository:

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

2008-08-26 Thread Duncan Coutts
On Tue, 2008-08-26 at 15:31 -0700, Bryan O'Sullivan wrote: On Tue, Aug 26, 2008 at 3:04 PM, Don Stewart [EMAIL PROTECTED] wrote: No, since I can get whnf with `seq`. However, that does sound like a good idea (a patch to the parallel library? ) I suspect that patching parallel doesn't

Re: [Haskell-cafe] unsafeInterleaveIO, lazyness and sharing

2008-08-26 Thread Duncan Coutts
On Wed, 2008-08-27 at 01:48 +0200, Wolfgang Jeltsch wrote: Hello, Haskell is non-strict but not necessarily lazy. So it’s possible that an expression is reduced to WHNF although it is not used yet. Could this “early reduction” also happen to outputs of unsafeInterleaveIO actions (which

[Haskell-cafe] Re: [Haskell] Top Level -

2008-08-24 Thread Duncan Coutts
This topic came up in #haskell this evening... On Sun, 2008-08-24 at 16:12 -0700, Ashley Yakeley wrote: 1. Global mutable state. For instance, here's the count variable for Data.Unique rewritten: uniqSource :: MVar Integer uniqSource - newMVarTL 0 Isn't that much nicer?

Re: [Haskell-cafe] the process package ...

2008-08-21 Thread Duncan Coutts
On Thu, 2008-08-21 at 00:36 -0500, Galchin, Vasili wrote: Hi Duncan, In reality there is a complaint about no configure file. In any case, you really mean autoconf and not autoreconf yes? If I should run autoconf, there is no configure.ac or configure.in file under the process

RE: [Haskell-cafe] cabal build command and package versions

2008-08-21 Thread Duncan Coutts
On Thu, 2008-08-21 at 08:23 +0100, Simon Peyton-Jones wrote: | On Wed, 2008-08-20 at 13:53 -0500, Nicolas Frisby wrote: | I have a question about cabal's behavior for the build command. When | using the build command on a cabalized project, any version changes | for installed packages go

Re: [Haskell-cafe] the process package ...

2008-08-21 Thread Duncan Coutts
at 5:01 AM, Duncan Coutts [EMAIL PROTECTED] wrote: On Thu, 2008-08-21 at 00:36 -0500, Galchin, Vasili wrote: Hi Duncan, In reality there is a complaint about no configure file. In any case, you really mean autoconf and not autoreconf yes

Re: [Haskell-cafe] HTTP package: connection closing bug?

2008-08-21 Thread Duncan Coutts
On Thu, 2008-08-21 at 19:12 -0400, Arjun Guha wrote: Aha, I knew I wasn't dreaming! http://mult.ifario.us/p/a-short-adventure-with-simplehttp Paul Brown posted this discussion back in February. It looks like the same thing. Has there been an update of HTTP since then? Nope, it

Re: [Haskell-cafe] the process package ...

2008-08-20 Thread Duncan Coutts
On Wed, 2008-08-20 at 03:09 -0500, Galchin, Vasili wrote: Hello, The process package Internal.hs references HsProcessConfig.h but this include file is not in the package include directory. Is this C include supposed to be generated? ?? Yes. It's generated by the ./configure script,

Re: [Haskell-cafe] Re: missingH 0.18.6 - problems with cabal configure

2008-08-20 Thread Duncan Coutts
On Wed, 2008-08-20 at 20:53 +0200, Ben Franksen wrote: Andrew U. Frank wrote: when i run cabal i get an error message: :~/haskellSources/packages/MissingH-0.18.6$ runhaskell Setup configure Setup.hs:19:35: Couldn't match expected type `(Either

Re: [Haskell-cafe] cabal build command and package versions

2008-08-20 Thread Duncan Coutts
On Wed, 2008-08-20 at 13:53 -0500, Nicolas Frisby wrote: I have a question about cabal's behavior for the build command. When using the build command on a cabalized project, any version changes for installed packages go unnoticed - the necessary modules in the project are not re-compiled.

Re: [Haskell-cafe] build depends: in a .cabal file

2008-08-18 Thread Duncan Coutts
On Mon, 2008-08-18 at 03:37 -0500, Galchin, Vasili wrote: Hello, It seems to me that the build depends attribute/field is only informational, i.e. it doesn't cause faulting in dependencies if not present? If true, this seems to be a deficiency in cabal. ?? I'm not quite sure what you

Re: [Haskell-cafe] build depends: in a .cabal file

2008-08-18 Thread Duncan Coutts
On Mon, 2008-08-18 at 17:41 -0400, Brandon S. Allbery KF8NH wrote: On 2008 Aug 18, at 17:30, Jason Dagit wrote: In my experience, with recent GHC there are only 3 packages needed to install cabal-install and it's pretty painless. You need zlib, HTTP and something else that I can't recall

Re: [Haskell-cafe] ANN: wavconvert 0.1.1

2008-08-18 Thread Duncan Coutts
On Mon, 2008-08-18 at 18:22 -0700, Don Stewart wrote: Tim wins the prize for the 500th Haskell package in Arch Linux, http://aur.archlinux.org/packages.php?ID=19205 Which, I should like to note, demonstrates why the original Cabal design[1] was basically right[2] in that it allows this

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 hai

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] 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-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 the file.

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 using

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] 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 meant to

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 daniel.is.fischer at 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: It's not in the Prelude

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

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

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

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. ... Hi,

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