[Haskell-cafe] map/reduce example

2007-11-26 Thread Bulat Ziganshin
Hello Haskell-Cafe, i've written small program which demonstrates how map/reduce may be implemented in Haskell. it counts amount of words in file, splitting it into 64kb blocks processed by two threads. their results are combined by another two threads. how it may be made better? in particular,

[Haskell-cafe] Re: is there a more concise way to generate helper functions for a datatype built on records?

2007-11-26 Thread Benedikt Huber
Neil Mitchell wrote: Hi Some of these can be automatically derived by the Data.Derive tool... The derivations Set, Is, From, Has, LazySet all look useful. ... On Nov 24, 2007 4:01 PM, Thomas Hartman [EMAIL PROTECTED] wrote: I think I'm running into more or less the same issue discussed at

Re: [Haskell-cafe] Old editions of The Monad.Reader lost

2007-11-26 Thread Wouter Swierstra
On 18 Aug 2007, at 20:10, Henk-Jan van Tuyl wrote: Now that all hawiki pages have been removed, we have lost some valuable information. For example The Monad.Reader; on http:// www.haskell.org/haskellwiki/The_Monad.Reader A few people have been asking what has happened to old editions of

[Haskell-cafe] Re: Pretty-printing peg solitaire boards

2007-11-26 Thread Maurí­cio
(...)However, I'm doing that because there's a single position which my brother could not solve, and he believes it to be impossible(...) I guess you meant #0# #0# ###0### ### ### ### ### This indeed can not be solved. (...) Actually, I did mean to start with:

Re: [Haskell-cafe] New slogan for haskell.org

2007-11-26 Thread Henning Thielemann
On Thu, 4 Oct 2007, Don Stewart wrote: The Haskell website has the rather strange motivational text: Haskell is a general purpose, purely functional programming language featuring static typing, higher order functions, polymorphism, type classes, and monadic effects. Haskell

Re: [Haskell-cafe] New slogan for haskell.org

2007-11-26 Thread Henning Thielemann
On Mon, 26 Nov 2007, Thomas Davie wrote: On 26 Nov 2007, at 15:15, Henning Thielemann wrote: On Thu, 4 Oct 2007, Don Stewart wrote: The Haskell website has the rather strange motivational text: Haskell is a general purpose, purely functional programming language featuring

[Haskell-cafe] The Monad.Reader - Call for Copy

2007-11-26 Thread Wouter Swierstra
Call for Copy The Monad.Reader - Issue 10 I would like to welcome articles for the anniversary issue of The Monad.Reader. * The Monad.Reader * The Monad.Reader is an electronic magazine about all things Haskell. It is less-formal

Re: [Haskell-cafe] New demo/test program for Yhc Javascript backend

2007-11-26 Thread Thomas Hartman
It would be really helpful if you could include this (and other) examples in an /examples directory under src/translator/js in the yhc darcs distribution, with working makefiles that validate against the buildbot. Something seems a bit off for me, probably forgot a tilde somewheres. t.

Re: [Haskell-cafe] Re: Pretty-printing peg solitaire boards

2007-11-26 Thread Bertram Felgenhauer
Maur??cio wrote: Actually, I did mean to start with: ### ### ###0### ### ### ### ### and then go to: #0# #0# ### ### ### ### ### My brother's idea is that he can solve any board after you choose the initial peg to be removed and the first

[Haskell-cafe] getDirectoryContents still causing problems Re: problems building ycr2js (hopefully fixed)

2007-11-26 Thread Thomas Hartman
still having problems darcs pulling your updates, related to System.FilePath. did you make clean and then make again? I darcs pulled everything. (cd src/translator/js; make all install) ... ... (cd /home/thartman/haskell-installs/yhc-install/yhc/src/translator/js/lib/haskell; \ for

[Haskell-cafe] Re: getDirectoryContents still causing problems Re: problems building ycr2js (hopefully fixed)

2007-11-26 Thread Thomas Hartman
False alarm. I rm -rf ed yhhc, fresh darcs got the latest yhc, reinstalled yhc, and redid (cd src/translator/js; make all install) and it built. 2007/11/26, Dimitry Golubovsky [EMAIL PROTECTED]: Thomas, It looks like this comes from Yhc, not from the Javascript backend. Have you done the

[Haskell-cafe] Re: getDirectoryContents still causing problems Re: problems building ycr2js (hopefully fixed)

2007-11-26 Thread Thomas Hartman
Based on my experience, I wouldn't recommend doing scons fullclean; rather, I would darcs checkout and go from scratch. Annoying, but seems to work better. thomas. 2007/11/26, Dimitry Golubovsky [EMAIL PROTECTED]: Thomas, This happens sometimes as Yhc depends on many other packages not very

[Haskell-cafe] Re: New slogan for haskell.org

2007-11-26 Thread apfelmus
Henning Thielemann wrote: Now my idea was, that making links to glossary articles leaves the slogan as short as it is, and allows people to find out quickly about the words they still don't know. An explanation why Haskell's features are useful for programmers is still required. +1 But we'd

Re: [Haskell-cafe] New demo/test program for Yhc Javascript backend

2007-11-26 Thread Thomas Hartman
2007/11/26, Dimitry Golubovsky [EMAIL PROTECTED]: Thomas, All published examples (source, html) go into web/jsdemos subdirectory (from the root of the Yhc repo source tree). right; it would be nice to have a makefile (or makefiles) there that works out of the box, rather than relying on the

Re: [Haskell-cafe] Re: New slogan for haskell.org

2007-11-26 Thread Andrew Coppin
apfelmus wrote: But we'd probably need the glossary articles first before linking to them :) +12 I added added alpha, beta and eta conversion a while back. (And then some kind soul corrected it because half of what I wrote was actually *wrong*...) Anybody want to take a stab at all 15 kinds

Re: [Haskell-cafe] Re: New slogan for haskell.org

2007-11-26 Thread Henning Thielemann
On Mon, 26 Nov 2007, Andrew Coppin wrote: apfelmus wrote: But we'd probably need the glossary articles first before linking to them :) +12 I added added alpha, beta and eta conversion a while back. (And then some kind soul corrected it because half of what I wrote was actually

Re: [Haskell-cafe] New slogan for haskell.org

2007-11-26 Thread Thomas Davie
On 26 Nov 2007, at 15:50, Henning Thielemann wrote: On Mon, 26 Nov 2007, Thomas Davie wrote: On 26 Nov 2007, at 15:15, Henning Thielemann wrote: On Thu, 4 Oct 2007, Don Stewart wrote: The Haskell website has the rather strange motivational text: Haskell is a general purpose, purely

[Haskell-cafe] idea for ycr2js demo, actually meant for an in-house project. is this realistic?

2007-11-26 Thread Thomas Hartman
As I mentioned in a previous post, I've been spending quite some time trying to get live with ycr2js because there's a project it would be useful for for my day job, as well as making another nice demo to add to the list. Basically, I have some functionality that does client-side filtering of

[Haskell-cafe] return in Monad class necessary?

2007-11-26 Thread Henning Thielemann
I wonder whether it is a typical mistake of beginners to write 'return' within a do-block (that is, not at the end) and if it is possible to avoid this mistake by clever typing. In a proper monad 'return' can be fused with subsequent actions, and thus it is not necessary within a sequence of

[Haskell-cafe] Re: Libraries need a new owner

2007-11-26 Thread Adrian Hey
Hello Folks, Adrian Hey wrote: If anyone is interested in the job then I suggest they contact myself or Jean-Philippe Bernardy. Sigh..no sooner than I go and write something like that than the IEE (or I should say IET) go and break my mail alias. So sorry if anyone did actually try to contact

Re: [Haskell-cafe] New demo/test program for Yhc Javascript backend

2007-11-26 Thread Thomas Hartman
Fair enough, I can wait for a couple of days. You might want to fix [EMAIL PROTECTED]:~/haskell-installs/yhc-install/yhc/src/translator/js/testdarcs whatsnew { hunk ./src/translator/js/test/Makefile 12 - $(YHC) -includes ../lib/haskell -linkcore $ + $(YHC) --includes ../lib/haskell

Re: [Haskell-cafe] New slogan for haskell.org

2007-11-26 Thread Thomas Schilling
On Thu, 2007-10-04 at 10:36 -0700, Don Stewart wrote: It was raised at CUFP today that while Python has: Python is a dynamic object-oriented programming language that can be used for many kinds of software development. It offers strong support for integration with other languages

Re: [Haskell-cafe] return in Monad class necessary?

2007-11-26 Thread Bulat Ziganshin
Hello Henning, Monday, November 26, 2007, 9:48:29 PM, you wrote: I wonder whether it is a typical mistake of beginners to write 'return' within a do-block (that is, not at the end) don't forget that `return` is also used to force evaluation: do let n = a+b return $! n writeChan c (n,1)

Re: [Haskell-cafe] New slogan for haskell.org

2007-11-26 Thread Andrew Coppin
Thomas Davie wrote: But the point is that this section of the site is the bit that's meant to be an advertisement -- we're trying to encourage people to read more, and quite frankly, making it a fist full of links would make at least me think Well bugger this if I have to read 10 pages before

[Haskell-cafe] Re: Pretty-printing peg solitaire boards

2007-11-26 Thread Maurí­cio
Actually, I did mean to start with: (...) #0# #0# ### ### ### ### ### (...) Heh. He's in for a surprise, there are actually solutions for this. (...) If you don't want to spoil it here, and it won't take too much of your time to write it down, you can send it

[Haskell-cafe] Building MissingH on Windows

2007-11-26 Thread nionita
Hi, I'm trying to build MissingH (0.18.6) on Windows, but it looks like (probably because of changes in Cabal) the Setup.hs is broken. Im using GHC 6.8.1. Following message: $ runhaskell Setup.hs configure Setup.hs:19:35: Couldn't match expected type `(Either

Re: [Haskell-cafe] Building MissingH on Windows

2007-11-26 Thread Thomas Schilling
On Mon, 2007-11-26 at 21:24 +0100, [EMAIL PROTECTED] wrote: Hi, I'm trying to build MissingH (0.18.6) on Windows, but it looks like (probably because of changes in Cabal) the Setup.hs is broken. Im using GHC 6.8.1. Following message: $ runhaskell Setup.hs configure Setup.hs:19:35:

Re: [Haskell-cafe] Building MissingH on Windows

2007-11-26 Thread Thomas Schilling
See also: http://haskell.org/haskellwiki/Upgrading_packages You probably have to adjust the build-depends field, due to the base split up. ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

[Haskell-cafe] Problems with split-objs

2007-11-26 Thread Magnus Therning
I've followed the instructions at [1] to create a .deb of vty[2]. It seems the helper scripts for Debian passes `--enable-split-obj' when running `./Setup.lhs configure'. This results in numerous multiple definitions of stuff. I have a few questions regarding this... I think I understand what

Re: [Haskell-cafe] return in Monad class necessary?

2007-11-26 Thread Chris Eidhof
On 26 nov 2007, at 19:48, Henning Thielemann wrote: I wonder whether it is a typical mistake of beginners to write 'return' within a do-block (that is, not at the end) and if it is possible to avoid this mistake by clever typing. In a proper monad 'return' can be fused with subsequent actions,

[Haskell-cafe] Announce: strict-concurrency

2007-11-26 Thread Don Stewart
While writing some multi-core concurrent code I needed more precise control over which thread evaluated particular expressions. The default concurrent types, MVar and Chan, are lazy, and sometimes not suitable. The little package,

[Haskell-cafe] Browser action and new http library

2007-11-26 Thread bbrown
I am trying to use the HTTP library 3001 for ghc 6.8 and cant figure out how to use a proxy to do a GET request as I am behind a proxy server. My thinking is that I could use the setProxy method it looks like it returns a BrowserAction? What do I do with that. Here is the current code (I

[Haskell-cafe] Strings and utf-8

2007-11-26 Thread Maurí­cio
Hi, Are 'String's in GHC 6.6.1 UTF-8? Thanks, Maurício ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] return in Monad class necessary?

2007-11-26 Thread Derek Elkins
On Tue, 2007-11-27 at 00:15 +0100, Chris Eidhof wrote: On 26 nov 2007, at 19:48, Henning Thielemann wrote: I wonder whether it is a typical mistake of beginners to write 'return' within a do-block (that is, not at the end) and if it is possible to avoid this mistake by clever typing. In a

Re: [Haskell-cafe] Strings and utf-8

2007-11-26 Thread Brandon S. Allbery KF8NH
On Nov 26, 2007, at 19:23 , Maurí cio wrote: Are 'String's in GHC 6.6.1 UTF-8? No. type String = [Char] and Char stores Unicode codepoints. However, the IO system truncates them to 8 bits. I think there are UTF8 marshaling libraries on hackage these days, though. -- brandon s.

Re: [Haskell-cafe] return in Monad class necessary?

2007-11-26 Thread Neil Mitchell
Hi Henning, I wonder whether it is a typical mistake of beginners to write 'return' within a do-block (that is, not at the end) and if it is possible to avoid this mistake by clever typing. There are legitimate uses of return inside a do, see:

Re: [Haskell-cafe] Strings and utf-8

2007-11-26 Thread Don Stewart
allbery: On Nov 26, 2007, at 19:23 , Maurí cio wrote: Are 'String's in GHC 6.6.1 UTF-8? No. type String = [Char] and Char stores Unicode codepoints. However, the IO system truncates them to 8 bits. I think there are UTF8 marshaling libraries on hackage these days, though.

[Haskell-cafe] Why aren't Float and Double Bounded?

2007-11-26 Thread Jason Dusek
Among numeric types, it seems that only integer types are Bounded. -- _jsn ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] ghc 6.8.1 bug?

2007-11-26 Thread SevenThunders
Ian Lynagh wrote: Can any of you give us a testcase for this, please? Thanks Ian ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe I started to work on this but so far

[Haskell-cafe] A tale of three shootout entries

2007-11-26 Thread Sterling Clover
In some spare time over the holidays I cooked up three shootout entries, for Fasta, the Meteor Contest, and Reverse Complement. I should probably have tossed them to haskell-cafe before submission, for review and ideas, but they're up now. In any case, all three were great learning

Re: [Haskell-cafe] A tale of three shootout entries

2007-11-26 Thread Don Stewart
s.clover: In some spare time over the holidays I cooked up three shootout entries, for Fasta, the Meteor Contest, and Reverse Complement. I Yay! First up is the meteor-contest entry. http://shootout.alioth.debian.org/gp4/benchmark.php? test=meteorlang=ghcid=5 This is the clear win

Re: [Haskell-cafe] New slogan for haskell.org

2007-11-26 Thread David Fox
On Nov 26, 2007 11:38 AM, Thomas Schilling [EMAIL PROTECTED] wrote: Haskell is a general-purpose, pure functional programming languages that puts many interesting results from research into a practical programming language. It's features include: I think it is stronger to say many

Re: [Haskell-cafe] return in Monad class necessary?

2007-11-26 Thread Jonathan Cast
On 26 Nov 2007, at 10:48 AM, Henning Thielemann wrote: I wonder whether it is a typical mistake of beginners to write 'return' within a do-block (that is, not at the end) and if it is possible to avoid this mistake by clever typing. In a proper monad 'return' can be fused with subsequent