[Haskell-cafe] Haskell Weekly News: April 27, 2007

2007-04-26 Thread Donald Bruce Stewart
--- Haskell Weekly News http://sequence.complete.org/hwn/20070427 Issue 61 - April 27, 2007 --- Welcome to issue 61 of HWN, a weekly newsletter coverin

[Haskell-cafe] New HaskODell user groups

2007-04-26 Thread Donald Bruce Stewart
I've created a new wiki page documenting all the new user groups for Haskell that are springing up! http://haskell.org/haskellwiki/User_groups If you're starting a new group, please add it here, and publicise. -- Don P.S. Some obvious user group candidates, in my opinion, would be a Portla

Re: [Haskell-cafe] Obscure instances for Obscure types

2007-04-26 Thread Robin Green
On Fri, 27 Apr 2007 00:40:33 +0100 "Neil Mitchell" <[EMAIL PROTECTED]> wrote: > > If it's too annoying to wait for that inevitability, try commenting > > the hell out of it until it has a respectable number of lines. > > Comments are for people who can't sense what their code does from the > inde

Re: [Haskell-cafe] Obscure instances for Obscure types

2007-04-26 Thread Neil Mitchell
Hi Dan, Don't forget the 2nd law of thermodynamics: no 4-line file will stay 4 lines long after repeated code iterations. You might as well plan for the inevitable. If this library is for the extra interactions available when using a libary with 2 classes (thats all BinaryDefer is likely to ev

Re: [Haskell-cafe] Obscure instances for Obscure types

2007-04-26 Thread Dan Weston
Taking a lesson from relational databases, I'd put it in 5-normal form: a separate module importing its two dependencies. Don't forget the 2nd law of thermodynamics: no 4-line file will stay 4 lines long after repeated code iterations. You might as well plan for the inevitable. If it's too a

Re: [Haskell-cafe] Obscure instances for Obscure types

2007-04-26 Thread Nicolas Frisby
I've had a similar question, which I think boiled down to a compilation issue. Consider packages A and B that can be defined independently. But, just as Neil pointed out, perhaps A and B could also interact beyond their basic definition. My naive idea is that A would compile the simple independen

[Haskell-cafe] Obscure instances for Obscure types

2007-04-26 Thread Neil Mitchell
Hi I currently maintain two libraries, TagSoup which defines the Tag data type, and BinaryDefer, which defines the BinaryDefer class. If I wanted to include an instance for BinaryDefer Tag, where would I put it? Putting it in either library introduces an artificial dependency on the other. Putti

[Haskell-cafe] ANN: London Haskell User Group

2007-04-26 Thread Neil Bartlett
I am delighted to announce the first meeting of the London Haskell User Group on Wednesday 23rd May from 6:30PM. The meeting will be held at City University's main campus in central London, and Simon Peyton Jones will be coming to give a talk. Please see the announcement on the web page for

Re: [Haskell-cafe] Stack overflow with my Trie implementation

2007-04-26 Thread Adrian Hey
Adrian Hey wrote: Pete Kazmier wrote: I've modified my Norvig spelling corrector to use a trie instead of Data.Map in the hopes of improving performance. Plus, this is fun and a great learning exercise for me. Unfortunately, when I load my trie with a large amount of data, I get a stack overfl

Re: [Haskell-cafe] Stack overflow with my Trie implementation

2007-04-26 Thread Adrian Hey
Pete Kazmier wrote: I've modified my Norvig spelling corrector to use a trie instead of Data.Map in the hopes of improving performance. Plus, this is fun and a great learning exercise for me. Unfortunately, when I load my trie with a large amount of data, I get a stack overflow. It's unclear t

[Haskell-cafe] Stack overflow with my Trie implementation

2007-04-26 Thread Pete Kazmier
I've modified my Norvig spelling corrector to use a trie instead of Data.Map in the hopes of improving performance. Plus, this is fun and a great learning exercise for me. Unfortunately, when I load my trie with a large amount of data, I get a stack overflow. It's unclear to me why this is happe

[Haskell-cafe] Haskell Job Opportunity

2007-04-26 Thread S. Alexander Jacobson
HAppS LLC has part-time and full-time positions open for haskell programmers to: * improve the open source haskell codebase at HAppS.org * implement infrastructure to make it work well in Amazon S3/EC2 environments * make http://pass.net reliable enough to be used by live apps * build the ma

[Haskell-cafe] Re: [Haskell] Newbie: what are the advantages of Haskell?

2007-04-26 Thread Joel Reymont
The biggest advantage of Haskell to me is that it helps me write better programs in other languages. For one reason or another Haskell never turns out to be my final implementation language my my programs gain in the process. Joel -- http://wagerlabs.com/ _

Re: [Haskell-cafe] Re: Compilling GHC on Vista

2007-04-26 Thread Claus Reinke
and even the mingw ld apparently sets its search_dirs without drive letters: that shouldn't be the problem, though, as the failing part of ./configure was an indirect call via gcc, which seems to set the library prefixes correctly, when calling collect2 (see > below). it was just that the e

[Haskell-cafe] Getting the number of seconds since epoch from System.Time.ClockTime

2007-04-26 Thread Martin Percossi
Hello haskell-cafe, In System.Time, data ClockTime = TOD Integer Integer , where the first integer represents the number of seconds since epoch, and the other represents the number of picoseconds. Is there a way of retrieving the first part? (In Haskell 98, the ClockTime type is abstract).

Re: [Haskell-cafe] Re: Compilling GHC on Vista

2007-04-26 Thread Claus Reinke
I suspect this may be because gcc has managed to pick up the Cygwin ld instead of the mingw one. Monique - what exactly is your PATH? What happens when you say 'ld --version'? 'ld --version' doesn't show differences between mingw/cygwin, does it? and even the mingw ld apparently sets its sear

[Haskell-cafe] Re: Compilling GHC on Vista

2007-04-26 Thread Simon Marlow
Claus Reinke wrote: gcc version 3.4.2 (mingw-special) configure:3288: $? = 0 configure:3295: c:/MinGW/bin/gcc -V >&5 gcc.exe: `-V' option must have argument configure:3298: $? = 1 configure:3321: checking for C compiler default output file name configure:3348: c:/MinGW/bin/gccconftest.c >&5

Re: [Haskell-cafe] Multi Line String literals

2007-04-26 Thread Matthew Sackman
Alex Queiroz <[EMAIL PROTECTED]> wrote: > On 4/26/07, Neil Mitchell <[EMAIL PROTECTED]> wrote: > > Like the cpp will choke and die :) Multiline string literals were one > > of the motivations for cpphs. > > Does cpphs allow me to include a whole file into a Haskell source > file, inserting au

Re: [Haskell-cafe] Multi Line String literals

2007-04-26 Thread Alex Queiroz
Hallo, On 4/26/07, Neil Mitchell <[EMAIL PROTECTED]> wrote: No, but Hugs does with "Here documents". Unfortunately I'm using GHC but thanks! Cheers, -- -alex http://www.ventonegro.org/ ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org htt

Re: [Haskell-cafe] Multi Line String literals

2007-04-26 Thread Neil Mitchell
Hi Does cpphs allow me to include a whole file into a Haskell source file, inserting automatically the string gaps? No, but Hugs does with "Here documents". Thanks Neil ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.

Re: [Haskell-cafe] Multi Line String literals

2007-04-26 Thread Alex Queiroz
Hallo, On 4/26/07, Neil Mitchell <[EMAIL PROTECTED]> wrote: Like the cpp will choke and die :) Multiline string literals were one of the motivations for cpphs. Does cpphs allow me to include a whole file into a Haskell source file, inserting automatically the string gaps? -- -alex http:

Re: [Haskell-cafe] Multi Line String literals

2007-04-26 Thread Neil Mitchell
Hi How does test = putStr "I\n\ \need\n\ \multiline\n\ \string\n\ \literals\n" look? Like the cpp will choke and die :) Multiline string literals were one of the motivations for cpphs. Thanks Neil

Re: [Haskell-cafe] Multi Line String literals

2007-04-26 Thread Stefan O'Rear
On Thu, Apr 26, 2007 at 01:43:09PM +0100, Joe Thornber wrote: > On 26/04/07, Bas van Dijk <[EMAIL PROTECTED]> wrote: > >test = putStrLn $ toIsString $ do "I" > > "need" > > "MultiLine" > >

Re: [Haskell-cafe] Multi Line String literals

2007-04-26 Thread Joe Thornber
On 26/04/07, Bas van Dijk <[EMAIL PROTECTED]> wrote: test = putStrLn $ toIsString $ do "I" "need" "MultiLine" "String"

[Haskell-cafe] Multi Line String literals

2007-04-26 Thread Bas van Dijk
Hello, Just for fun I'm trying to define multi line string literals. I have the following code and I'm wondering if it can be improved (understandability, elegance, performance): http://hpaste.org/1582 (look at the second annotation) regards, Bas van Dijk ___