Re: Calling an external command from a Haskell program

2003-10-21 Thread Salvador Lucas
Hi, Mikael Brockman wrote: > > > You can use.. > > system :: String -> IO ExitCode > > in library module System.Cmd > > > > If you want access to its I/O streams as well, you can use > Posix.popen, which is not standard Haskell 98, I think, but it's in > GHC. Yes, in fact, this was the re

Re: Graduate Student

2003-10-21 Thread Keith Wansbrough
> I am a graduate student who is interested in Haskell. I wanted to take a > look at the Haskell Wish List but I get the error [..] > Is there anyone who has a copy of the Wish List? Someone will correct me if I'm wrong I'm sure, but I don't think this has been used for at least a couple of year

Re: Calling an external command from a Haskell program

2003-10-21 Thread Alastair Reid
> I already knew about 'system' in > library System, but the Hugs installation says: > > -- Warning: the implementation of these functions in Hugs 98 is very weak. > -- The functions themselves are best suited to uses in compiled programs, > -- and not to use in an interpreter-based environment lik

Re: Calling an external command from a Haskell program

2003-10-21 Thread C.Reinke
> The function system works fine in Hugs except on windows where DOS limitations > cause the function to always return ExitSuccess. (ghc suffers from the same > problem on Windows.) Actually, that is not quite correct: ghc seems to suffer from this problem only on older Windows versions (such

Re: Calling an external command from a Haskell program

2003-10-21 Thread C.Reinke
> If you want access to its I/O streams as well, you can use > Posix.popen, which is not standard Haskell 98, I think, but it's > in GHC. Even worse, it is not portable (AFAICT)! I'm worried by the tendency towards Posix, at a time when, e.g., GHC by default no longer supports this on Windows (we

Re: Graduate Student

2003-10-21 Thread Isaac Jones
Keith Wansbrough <[EMAIL PROTECTED]> writes: > (SNIP!) > You might find the Wiki pages more interesting; try starting at > > http://haskell.org/hawiki/HaskellTwo > > and browsing around. Otherwise, the mailing list archives are > probably the best place to look. And if you find anything that's

RE: About Haskell Thread Model

2003-10-21 Thread Simon Marlow
> On Mon, Oct 13, 2003 at 11:13:56AM +0200, Wolfgang Thaller wrote: > > The reason why we currently do not take advantage of SMP is > that the > > Haskell Heap is a shared data structure which is modified > whenever a > > thunk (an unevaluated expression) is evaluated. Using > synchronisatio

Re: Enum on Float/Double

2003-10-21 Thread Hal Daume III
> > My preference would be for succ (+-0) to return the smallest positive > > real, since then you could define succ x to be the unique y with > > x < y and forall z . z < y => not (x < z), where such a y exists, and > > I'm not sure if the Haskell standard knows about signed zeros. > > Is this re

RE: Enum on Float/Double

2003-10-21 Thread Jacques Carette
The C function you are looking for is called 'nextafter', and is present on all systems/libraries that pretend to be fully IEEE-754 compliant (as this is a required function from the standard). It even takes a direction parameter (so you can do both nextafter and firstbefore). Since its API is si

Re: Enum on Float/Double

2003-10-21 Thread Lennart Augustsson
So this has been a while, but i think that decodeFloat, incrementing the mantissa, encodeFloat might work. But then again, it might not. :) -- Lennart Hal Daume III wrote: My preference would be for succ (+-0) to return the smallest positive real, since then you could define succ x to be the uniq

RE: Calling an external command from a Haskell program

2003-10-21 Thread Simon Marlow
> PS. why the differences in default access to standard modules? > should GHC be more restrictive there? No, this is a feature. See http://www.haskell.org/ghc/docs/latest/html/users_guide/x1097.html#GHCI-SCOPE in particular section 3.4.1.1. Cheers, Simon __