ANNOUNCE: hugs98.NET March 2003 snapshot

2003-03-12 Thread Sigbjorn Finne
A new version of Hugs98.NET is now available, sporting the following: * A version of the popular Haskell interpreter, Hugs98 (http://haskell.org/hugs), targetted at the Microsoft .NET platform. * .NET interop integrated via the Haskell FFI. * Support for wrapping up Haskell functions a

Re: How to search for a string sequence in a file a rewrite it???

2003-03-12 Thread Hal Daume III
Right. *Recurse* down the list. Somethign like: foo orig_str new_str xl@(x:xs) | orig_str `isPrefixOf` xl = | otherwise= x : -- Hal Daume III | [EMAIL PROTECTED] "Arrest this man, he talks in maths." | www.isi.edu/~hdaume On T

Re: How to search for a string sequence in a file a rewrite it???

2003-03-12 Thread Alexandre Weffort Thenorio
Well the problem is that the string I want to replace will usually be in the middle of a line in the text file and then is PrefixOf of no use?? Any other suggestion?? Like the text file will be similar to abcdedjkfhlafl sajkhlasf akfhjklafjkhfk sdfasfsaasffaa So I want to replace this i

Re: How to search for a string sequence in a file a rewrite it???

2003-03-12 Thread Hal Daume III
This is how I would do it: recurse down the input string. use isPrefixOf to check is the string youw ant to replace is at the head of the string. if it is, 'drop' the appropriate number of characters and stick the replacement string on the front. then recurse. this should be about 3 lines of c

How to search for a string sequence in a file a rewrite it???

2003-03-12 Thread Alexandre Weffort Thenorio
OK Guys. First I would like to say thanks for all the help given before. As I said I am still learning Haskell. My problem is the following: I have a text file and somewhere in the file there is string (Let's say ). So I need to find this exact string and overwrite with another string (Lets sa

Re: recursive modules in Haskell

2003-03-12 Thread Iavor S. Diatchki
hi, Elke Kasimir wrote: No Problem at all for Haskell, but a problem for certain often-used Haskell compilers and interpreters... Factoring out "the common part" does not work in examples like above, so the only way is to collapse everything, and to reduce class constraints as much as is possible

recursive modules in Haskell

2003-03-12 Thread Elke Kasimir
Hi all! I've just got one of the rare chances to do a somewhat bigger piece of software development in Haskell. After having set up a design (with much use of multi-parameter-classes) I was very excited. However, to extent that implementation proceeded I had to recognize many unforeseen implemen

MoChArt-03 submission deadline extended to March 17

2003-03-12 Thread from home
[Apologies if you receive more than one copy of this message. -- The Organizers.] = *** EXTENDED Submission deadline: March 17, 2003 ***

RE: Problem with hierarchical libraries.

2003-03-12 Thread Simon Marlow
> > IIRC, something very similar was suggested a while back on > the libraries > > list, except that the form beginning with a dot was the > relative module > > name (actually I think I prefer it that way). > > this seems exactly the opposite of what all file systems do. i know > lateral think