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
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
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 -
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
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
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
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. |
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
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?
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
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
[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
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
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
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
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
[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
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
18 matches
Mail list logo