Re: [Haskell-cafe] haskell and reflection

2007-09-11 Thread Reinier Lamers
Op 11-sep-2007, om 18:43 heeft Greg Meredith het volgende geschreven: Thanks for these comments. i wouldn't judge Haskell solely on the basis of whether it embraced reflection as an organizing computational principle or as a toolbox for programmers. Clearly, you can get very far without

[Haskell-cafe] Re: [Haskell] reading from stdin

2007-10-05 Thread Reinier Lamers
Axel Simon wrote: a) is the behaviour I want, but unfortunately for platform d) b) must be due to ghci and Hugs having different opinions on whether stdin should be line buffered or unbuffered c) this is weird d) this is broken You can probably unify the behaviors of platforms a, b and c by

Re: [Haskell-cafe] Re: Why can't Haskell be faster?

2007-10-31 Thread Reinier Lamers
Paulo J. Matos wrote: So the slowness of Haskell (compared to Clean) is consequence of its type system. OK, I'll stop, I did not write Clean nor Haskell optimizers or stuff like that :-D type system? Why is that? Shouldn't type system in fact speed up the generated code, since it will

Re: [Haskell-cafe] Standalone PNG module?

2007-11-07 Thread Reinier Lamers
Peter Verswyvelen wrote: I would like to load 32-bit images (RGB+alpha) for use with GLUT/OpenGL. I know GTK2HS has support for loading images, but does a standalone Haskell (wrapper) module exists for loading images? See the message PNG files by Tim Newsham, sent to haskell-cafe on the

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

2007-11-27 Thread Reinier Lamers
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 proper monad 'return' can be fused

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

2007-11-29 Thread Reinier Lamers
Bulat Ziganshin wrote: Hello Andrew, Thursday, November 29, 2007, 1:11:38 AM, you wrote: IMHO, someone should make a full proposal by implementing an alternative System.IO library that deals with all these encoding issues and implements H98 IO in terms of that. We need two

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

2007-11-29 Thread Reinier Lamers
Thomas Hartman wrote: A translation of http://www.ahinea.com/en/tech/perl-unicode-struggle.html from perl to haskell would be a very useful piece of documentation, I think. Perl encodes both Unicode and binary data as the same (dynamic) data type. Haskell - at least in theory - has two

Re: [Haskell-cafe] Re: Array copying

2007-12-03 Thread Reinier Lamers
ChrisK wrote: For GHC 6.6 I created foreign import ccall unsafe memcpy memcpy :: MutableByteArray# RealWorld - MutableByteArray# RealWorld - Int# - IO () {-# INLINE copySTU #-} copySTU :: (Show i,Ix i,MArray (STUArray s) e (ST s)) = STUArray s i e - STUArray s i e - ST s ()

[Haskell-cafe] Re: C Preprocessor

2007-12-06 Thread Reinier Lamers
Bernd Brassel wrote: Is it already a known problem that the preprocessor cannot cope with the whole set of possible string declarations? Yes, it is: http://hackage.haskell.org/trac/hackage/ticket/146 I ran into it lately. I was totally unaware of what caused GHC's parse error on a valid

Re: [Haskell-cafe] Folding Integrals

2007-12-12 Thread Reinier Lamers
Mattias Bengtsson wrote: I found myself writing this for an Euler-problem: digits :: Int - [Int] digits i | i 10= [i] | otherwise = i `mod` 10 : digits ( i `div` 10 ) And i realised it was quite some time ago (before this function) i had actually written any explicitly

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

2007-12-12 Thread Reinier Lamers
Andrew Coppin wrote: Yeah, we should probably set up a seperate list for this stuff... Perhaps you can use http://haskell.org/haskellwiki/?title=Talk:FrontpageDraftaction=edit ? That page is also a better place to fight your edit wars than the front page is. Reinier

Re: [Haskell-cafe] New to Haskell: The End

2007-12-18 Thread Reinier Lamers
Cristian Baboi wrote: Haskell strengts as I see them: - it is lazy with class - it is strongly typed - it has automatic memory management - it has a standard library - it has a compiler - it is available on several platforms - it has a community - it is free Is there anything you would like to

[Haskell-cafe] ANNOUNCE: darcs 2.4.1

2010-04-12 Thread Reinier Lamers
also report bugs by email to b...@darcs.net. Kind Regards, the darcs release manager, Reinier Lamers [1]: You can download the Haskell platform from http://hackage.haskell.org/platform/ signature.asc Description: This is a digitally signed message part

[Haskell-cafe] darcs 2.5 beta 1 release

2010-07-11 Thread Reinier Lamers
Regards, the darcs release manager, Reinier Lamers signature.asc Description: This is a digitally signed message part. ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] darcs 2.5 beta 1 release

2010-07-12 Thread Reinier Lamers
Hi, Op zondag 11 juli 2010 18:02 schreef Jason Dagit: On Sun, Jul 11, 2010 at 5:51 AM, Reinier Lamers tux_roc...@reinier.dewrote: If you have installed the Haskell Platform or cabal-install, you can install this beta release by doing: $ cabal update $ cabal install darcs-beta

[Haskell-cafe] ANNOUNCE: darcs 2.5 beta 2

2010-07-26 Thread Reinier Lamers
this beta release by doing: $ cabal update $ cabal install darcs-beta Alternatively, you can download the tarball from http://darcs.net/releases/darcs-2.4.98.2.tar.gz and build it by hand as explained in the README file. Kind Regards, the darcs release manager, Reinier Lamers signature.asc

Re: [Haskell-cafe] Haskell-Support in Ohloh

2008-01-19 Thread Reinier Lamers
Op 17-jan-2008, om 1:21 heeft Joachim Breitner het volgende geschreven: They explicitly write that they want haskell support, and the oldest open bug report on their page is about this: http://labs.ohloh.net/ohcount/ticket/205 So if anyone feels like programming some ruby (I guess they want

Re: [Haskell-cafe] Has character changed in GHC 6.8?

2008-01-22 Thread Reinier Lamers
Ian Lynagh wrote: On Tue, Jan 22, 2008 at 03:16:15PM +, Magnus Therning wrote: On 1/22/08, Duncan Coutts [EMAIL PROTECTED] wrote: On Tue, 2008-01-22 at 09:29 +, Magnus Therning wrote: I vaguely remember that in GHC 6.6 code like this length $ map ord a string being

Re: [Haskell-cafe] Has character changed in GHC 6.8?

2008-01-23 Thread Reinier Lamers
Johan Tibell wrote: What *does* matter to the programmer is what encodings putStr and getLine use. AFAIK, they use lower 8 bits of unicode code point which is almost functionally equivalent to latin-1. Which is terrible! You should have to be explicit about what encoding you expect.

Re: [Haskell-cafe] Simple network client

2008-01-30 Thread Reinier Lamers
Timo B. Hübel wrote: On Wednesday 30 January 2008 13:03:27 you wrote: Just don't use hGetContents in any serious code, or any program longer than 4 lines. What else do you suggest? I just want to read something out of the socket without knowing it's length beforehand (my example here

Re: [Haskell-cafe] Simple network client

2008-01-31 Thread Reinier Lamers
Bayley, Alistair wrote: More than one person has posted previously about the flaws and traps of lazy IO. A common position seems to be don't do lazy IO. Still, when I was browsing the Haskell' wiki a few days ago, I couldn't find any proposal to remove lazy I/O or move it into some special

Re: [Haskell-cafe] Best practice for embedding files in a GHC-compiled tool?

2008-02-08 Thread Reinier Lamers
Op 7-feb-2008, om 13:53 heeft Dave Bayer het volgende geschreven: Under this extreme hypothesis, how do I embed a compressed tar file into a single file command line tool written in Haskell and compiled by GHC? Hack up a shell script or a small Haskell program to automatically generate a

Re: [Haskell-cafe] haddock as a markdown preprocessor

2008-02-22 Thread Reinier Lamers
Op 22-feb-2008, om 1:54 heeft Conal Elliott het volgende geschreven: The goal redesigning for composability is that we get more for less. Haddock can focus on its speciality, namely hyperlinked Haskell code documentation, and pandoc on its, namely human- writable and -readable prose with

Re: [Haskell-cafe] Re: GADT rhymes with cat

2008-03-18 Thread Reinier Lamers
Op 17-mrt-2008, om 5:39 heeft Emir Pasalic het volgende geschreven: And is the plural 'gatte'? :) Not in Dutch, then it's 'gaten' (which is irregular, and the Afrikaners don't like irregularities, so they regularized it). Reinier ___ Haskell-Cafe

Re: [Haskell] [Haskell-cafe] Help with polymorphic functions

2008-05-08 Thread Reinier Lamers
Op Thursday 08 May 2008 21:10:08 schreef Wei Yuan Cai: shift is defined as a - Int - a It's not. It's defined as (Bits a) = a - Int - a or something along those lines. So there is a restriction that the type a must be a member of the Bits typeclass. Because test is essentially just shift, its

Re: [Haskell-cafe] whhaskell on osx 10.5

2008-05-20 Thread Reinier Lamers
Op Tuesday 20 May 2008 23:23:57 schreef Marc Weber: On Tue, May 20, 2008 at 12:38:14PM -0700, Kirk Peterson wrote: I had a difficult time getting wxhaskell installed and working on a mac running os x 10.5. I did a quick write up of the process I got working here:

Re: [Haskell-cafe] More idiomatic use of strictness

2008-07-10 Thread Reinier Lamers
Hi all, Op Thursday 10 July 2008 12:16:25 schreef Grzegorz Chrupala: Is there a less ugly way of avoiding laziness in the code pasted below then the use of seq in the last line? You could replace the list dfs' with a strict list type, like: data StrictList a = Cons !a !(StrictList a) | Nil

[Haskell-cafe] darcs 2.4 beta 1 release

2010-01-05 Thread Reinier Lamers
package exclusively for compression (Petr) Kind Regards, the darcs release manager, Reinier Lamers signature.asc Description: This is a digitally signed message part. ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman

[Haskell-cafe] darcs 2.4 beta 2 release

2010-01-20 Thread Reinier Lamers
* 1712: correctly report number of patches to pull * 1720: fix cabal haddock problem * 1731: fix performance regression in check and repair Kind Regards, the darcs release manager, Reinier Lamers [1]: You can download the Haskell platform from http://hackage.haskell.org/platform

[Haskell-cafe] darcs 2.4 beta 3 release

2010-01-26 Thread Reinier Lamers
: correctly report number of patches to pull * 1720: fix cabal haddock problem * 1731: fix performance regression in check and repair Kind Regards, the darcs release manager, Reinier Lamers [1]: You can download the Haskell platform from http://hackage.haskell.org/platform/ signature.asc

[Haskell-cafe] darcs 2.4 release candidate 2

2010-02-18 Thread Reinier Lamers
: fix short version of progress reporting * 1712: correctly report number of patches to pull * 1720: fix cabal haddock problem * 1731: fix performance regression in check and repair * 1741: fix --list-options when option has multiple names Kind Regards, the darcs release manager, Reinier

[Haskell-cafe] ANNOUNCE: darcs 2.5 beta 3

2010-08-15 Thread Reinier Lamers
as explained in the README file. (You may notice that the Unix permissions in this tarball are weird - all files are 0600. That is because of Cabal bug #627: http://hackage.haskell.org/trac/hackage/ticket/627. It will be fixed in the final release.) Kind Regards, the darcs release manager, Reinier Lamers

[Haskell-cafe] ANNOUNCE: darcs 2.5 beta 4

2010-08-23 Thread Reinier Lamers
$ cabal install darcs-beta Alternatively, you can download the tarball from http://darcs.net/releases/darcs-2.4.98.4.tar.gz and build it by hand as explained in the README file. Kind Regards, the darcs release manager, Reinier Lamers signature.asc Description: This is a digitally signed

[Haskell-cafe] ANNOUNCE: darcs 2.5 beta 5

2010-09-05 Thread Reinier Lamers
release by doing: $ cabal update $ cabal install darcs-beta Alternatively, you can download the tarball from http://darcs.net/releases/darcs-2.4.98.5.tar.gz and build it by hand as explained in the README file. Kind Regards, the darcs release manager, Reinier Lamers signature.asc

[Haskell-cafe] ANNOUNCE: darcs 2.5 release candidate 1

2010-10-15 Thread Reinier Lamers
. Kind Regards, the darcs release manager, Reinier Lamers signature.asc Description: This is a digitally signed message part. ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

[Haskell-cafe] ANNOUNCE: darcs 2.5

2010-10-30 Thread Reinier Lamers
the web on http://bugs.darcs.net/ . You can also report bugs by email to b...@darcs.net. Kind Regards, the darcs release manager, Reinier Lamers [1]: You can download the Haskell platform from http://hackage.haskell.org/platform/ signature.asc Description: This is a digitally signed message

Re: [Haskell-cafe] What *not* to use Haskell for

2008-11-12 Thread Reinier Lamers
2008/11/11 Dave Tapley [EMAIL PROTECTED]: So I should clarify I'm not a troll and do see the Haskell light. But one thing I can never answer when preaching to others is what does Haskell not do well? Let's say something controversial: I think that Haskell's type system gets in your way when