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 thinking is

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

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 -

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

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

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

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 = something | otherwise= x : something -- Hal Daume III | [EMAIL PROTECTED] Arrest this man, he talks in maths. |

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

Re: ANNOUNCE: GHC vesrion 5.04.3 released

2003-03-12 Thread Ketil Z. Malde
I notice the release notes say a few architectures should be possible to port to, in particular AIX/POWER. How possible is that, exactly? Has anybody done it with any success? Alternatively, is there any alternative Haskell compiler (I guess that would be NHC?) that works for this architecture?

fix missing from 5.04.3 ???

2003-03-12 Thread Keean Schupke
Previous 5.04 releases had an exception handler missing from connectTo that results in a socket leaking if socketToHandle fails for some reason (I cant remember the exact circumstances at the moment, but it causes a server to die - I think the leak is caused when the client closes the

RE: ANNOUNCE: GHC vesrion 5.04.3 released

2003-03-12 Thread Simon Marlow
I notice the release notes say a few architectures should be possible to port to, in particular AIX/POWER. How possible is that, exactly? Has anybody done it with any success? Alternatively, is there any alternative Haskell compiler (I guess that would be NHC?) that works for this

Re: ANNOUNCE: GHC vesrion 5.04.3 released

2003-03-12 Thread Malcolm Wallace
[EMAIL PROTECTED] (Ketil Z. Malde) writes: I notice the release notes say a few architectures should be possible to port to, in particular AIX/POWER. How possible is that, exactly? Has anybody done it with any success? Alternatively, is there any alternative Haskell compiler (I guess that

Stricness of floor etc

2003-03-12 Thread Ian Lynagh
Hi all, Looking at ghc --show-iface .../ghc/lib/ghc-5.05/imports/base/GHC/Float.hi I see floor1 :: forall b. (GHC.Real.Integral b) = Double - b __S L properFraction2 :: forall b. (GHC.Real.Integral b) = Double - (b, Double) __S L

HTk for ghc5.04.3

2003-03-12 Thread George Russell
I have created binary bundles for HTk, our Haskell interface to Tcl/Tk, for ghc5.04.3 on Linux/x86 and Windows, and put them on the download page: http://www.informatik.uni-bremen.de/htk/download/INSTALL.BINARY.html I will add FreeBSD and Solaris bundles when I can get hold of ghc5.04.3 on

Network/Notwork?

2003-03-12 Thread Claus Reinke
Happy with my Winsock work-arounds for my small client-/server-test, I decided to try integrating the Network use into my target project, and got nothing but trouble. Again, things that work happily under Unix simply fail under windows. My best guess at the moment is that the socketToHandle

Explicit function call

2003-03-12 Thread Pavel G. Zhbanov
Hello, How can I make an explicit function call in a do sequence? Ex: ... do let a = myFunc ... b = myFunc ... c = Something else return c ... As I understand myFunc will not be executed, but I need it... Please, help. -- Pavel Zhbanov

Re: Explicit function call

2003-03-12 Thread Jon Cast
[EMAIL PROTECTED] (Pavel G. Zhbanov) wrote: If it doesn't have a side effect, why do it anyway? The result 'c' does not depend on a. myFunc uses IORef and it's (IORef's) result I use afterwards in some other functions. OK: what is myFunc's type? If it ends in IO alpha, for some alpha, you

Re: Explicit function call

2003-03-12 Thread Glynn Clements
Pavel G. Zhbanov wrote: If it doesn't have a side effect, why do it anyway? The result 'c' does not depend on a. myFunc uses IORef and it's (IORef's) result I use afterwards in some other functions. OK: what is myFunc's type? If it ends in IO alpha, for some alpha, you