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
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
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
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
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
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
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
[Apologies if you receive more than one copy of this message. -- The
Organizers.]
=
*** EXTENDED Submission deadline: March 17, 2003 ***
> > 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