[Haskell-cafe] Re: Editors for Haskell

2006-06-01 Thread Thomas Hallgren
Brian Hulley wrote: Another thing which causes difficulty is the use of qualified operators, and the fact that the qualification syntax is in the context free grammar instead of being kept in the lexical syntax (where I think it belongs). You are in luck, because according to the Haskell

[Haskell-cafe] Re: Editors for Haskell

2006-06-01 Thread Brian Hulley
Thomas Hallgren wrote: Brian Hulley wrote: Another thing which causes difficulty is the use of qualified operators, and the fact that the qualification syntax is in the context free grammar instead of being kept in the lexical syntax (where I think it belongs). You are in luck, because

Re: [Haskell-cafe] Filtering on data constructors with TH

2006-06-01 Thread Bulat Ziganshin
Hello Christophe, Thursday, June 1, 2006, 6:59:56 AM, you wrote: data Plop a b = Foo a | Bar b deriving Show print $ filter isFoo l2 btw, DrIFT already have modules what implements this, along with many other. it's a list of basic rules included in DrIFT: standardRules = [(test,dattest,

[Haskell-cafe] sum-file shootout test

2006-06-01 Thread Bulat Ziganshin
Hello Haskell-cafe, i have analyzed performance of various sum-file implementations (see http://shootout.alioth.debian.org/debian/benchmark.php?test=sumcollang=all ) first, one-liner implementation (attached as b.hs) works about 500 seconds on my cpu. it can be made 10x faster just by using it's

[Haskell-cafe] Re: [Haskell] My summer of code project: HsJudy

2006-06-01 Thread Simon Marlow
Bulat Ziganshin wrote: 1. In terms of Haskell, Judy is a library of _mutable_ collections of _unboxed_ elements. i pointed you to the Array wiki page, where differences between boxed and unboxed, mutable and immutable datastructures are described There's no reason you can't use Judy to

[Haskell-cafe] Re[2]: [Haskell] My summer of code project: HsJudy

2006-06-01 Thread Bulat Ziganshin
Hello Simon, Thursday, June 1, 2006, 2:13:03 PM, you wrote: Bulat Ziganshin wrote: 1. In terms of Haskell, Judy is a library of _mutable_ collections of _unboxed_ elements. i pointed you to the Array wiki page, where differences between boxed and unboxed, mutable and immutable

[Haskell-cafe] Re: [Haskell] My summer of code project: HsJudy

2006-06-01 Thread Simon Marlow
Bulat Ziganshin wrote: Thursday, June 1, 2006, 2:13:03 PM, you wrote: Bulat Ziganshin wrote: 1. In terms of Haskell, Judy is a library of _mutable_ collections of _unboxed_ elements. i pointed you to the Array wiki page, where differences between boxed and unboxed, mutable and immutable

Re: [Haskell-cafe] Tips for converting Prolog to typeclasses?

2006-06-01 Thread Greg Buchholz
Robert Dockins wrote: To make this work, you're going to have to convince the compiler to accept overlapping instances and then make sure they don't overlap :) In the second instance, what you really want to say is instance c [a] c, only where c is not an application of (-). As I recall,

Re: [Haskell-cafe] Filtering on data constructors with TH

2006-06-01 Thread Evan Martin
On 6/1/06, Christophe Poucet [EMAIL PROTECTED] wrote: That's why today I have created an automated derivation for data constructor filtering. As I started coding someone mentioned that something similar can be done with list comprehensions, so I'm not certain about the scope of usefulness,

[Haskell-cafe] Bytes to float

2006-06-01 Thread Ivan Tikhonov
Hello. I have 4 bytes long String and i want to convert it to Float. How can i do this in Haskell? Don't want to use Ptr's. Thanks. ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] Tips for converting Prolog to typeclasses?

2006-06-01 Thread Greg Buchholz
Robert Dockins wrote: ] In the second instance, what you really want to say is instance c [a] ] c, only where c is not an application of (-). As I recall, there is ] a way to express such type equality/unequality using typeclasses, but ] I don't remember how to do it offhand. For those

[Haskell-cafe] Efficient way to edit a file

2006-06-01 Thread MaurĂ­cio
Hi, I need to edit big text files (5 to 500 Mb). But I just need to change one or two small lines, and save it. What is the best way to do that in Haskell, without creating copies of the whole files? Thanks, MaurĂ­cio ___ Haskell-Cafe

Re: [Haskell-cafe] Efficient way to edit a file

2006-06-01 Thread Donald Bruce Stewart
briqueabraque: Hi, I need to edit big text files (5 to 500 Mb). But I just need to change one or two small lines, and save it. What is the best way to do that in Haskell, without creating copies of the whole files? I'd think maybe a lazy bytestring would be ok. Something like:

Re: [Haskell-cafe] Efficient way to edit a file

2006-06-01 Thread Donald Bruce Stewart
dons: briqueabraque: Hi, I need to edit big text files (5 to 500 Mb). But I just need to change one or two small lines, and save it. What is the best way to do that in Haskell, without creating copies of the whole files? I'd think maybe a lazy bytestring would be ok.

Re: [Haskell-cafe] Efficient way to edit a file

2006-06-01 Thread Donald Bruce Stewart
dons: briqueabraque: Hi, I need to edit big text files (5 to 500 Mb). But I just need to change one or two small lines, and save it. What is the best way to do that in Haskell, without creating copies of the whole files? Thinking further, since you want to avoid copying on

[Haskell-cafe] Eclipse and Haskell

2006-06-01 Thread Walter Potter
All, I intend to start using Eclipse as my IDE. Please pass along any suggestions that I may find useful. Thanks, Walt ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

[Haskell-cafe] Teaching Haskell

2006-06-01 Thread Walter Potter
All, Is there a list for those of us who teach Haskell ? Or should teaching questions be posted here? Thanks, Walt ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe