In the GHC document, section "GHC-specific concurrency issues", it says:
In a standalone GHC program, only the main thread is required to
terminate in order for the process to terminate.
I have a program (which does some fairly complex things with forking processes,
calling sockets etcetera)
Wed, 18 Oct 2000 16:32:21 +0200, George Russell [EMAIL PROTECTED] pisze:
In a standalone GHC program, only the main thread is required to
terminate in order for the process to terminate.
I have a program (which does some fairly complex things with forking processes,
The above fact
GHC (4.08.1) rpm packages for RedHat 7.0 are available from
ftp://ftp.cse.unsw.edu.au/pub/users/chak/jibunmaki/i386/ghc-4.08.1-2.i386.rpm
ftp://ftp.cse.unsw.edu.au/pub/users/chak/jibunmaki/i386/ghc-prof-4.08.1-2.i386.rpm
[The second package is only required for profiling.]
The
Hi,
I'm trying to set up some socket connections with Haskell on a Windows 2000
platform, but I can't seem to get them working.
My program is rather simple:
--
import Socket
main = do { socket - listenOn (PortNumber 1234)
; return ()
}
--
I know this shouldn't do
You need to init WinSock first, i.e.,
main = withSocketsDo $ do {...}
--sigbjorn
Martijn [mailto:[EMAIL PROTECTED]] writes:
Hi,
I'm trying to set up some socket connections with Haskell on
a Windows 2000
platform, but I can't seem to get them working.
My program is rather
Hi all,
For years I have wondered why the Num class has the Eq class
and the Show class as super classes.
Because of this, I cannot make functions an instance of Num
(becuase they are not in Eq or Show). Or a datatype
respresenting an infinite amount of digits (because Eq would
not make any
Is there a common way to pronounce "=" in discussions or when teaching?
I've learned all my Haskell from printed/visual documents.
--
Scott Turner
[EMAIL PROTECTED] http://www.ma.ultranet.com/~pkturner
___
Haskell mailing list
[EMAIL PROTECTED]
On Wed, 18 Oct 2000, Scott Turner wrote:
Is there a common way to pronounce "=" in discussions or when teaching?
I've learned all my Haskell from printed/visual documents.
How about 'bind'? and "" = 'then'.
/Lars L
___
Haskell mailing list
Wed, 18 Oct 2000 12:57:56 +0200 (MET DST), Koen Claessen [EMAIL PROTECTED] pisze:
The defaulting mechanism works as follows: If there is an unresolved
overloading error on a type variable a, which has as an *only*
constraint (Num a), then we take a to be the suitable default.
This is not
Hi Koen,
| If Show were not a super class of Num, the following program
| would generate an error:
|
| main = print 42
|
| If Eq were not a super class, the following program would
| not work:
|
| main = print (if 42 == 42 then "koe" else "apa")
|
| These programs are all fixed by
mapM seems to be a memory hog (and thus also concatMapM). In the following eg:
main = mapM print ([1..102400] :: [Integer])
memory usage climbs to 1.6M with ghc and needs -K20M, whereas with
main = print ([1..102400] :: [Integer])
memory usage is only 1300 bytes.
I instrumented mapM:
[EMAIL PROTECTED] (Sengan Baring-Gould) wrote:
mapM seems to be a memory hog (and thus also concatMapM).
In the following eg:
main = mapM print ([1..102400] :: [Integer])
memory usage climbs to 1.6M with ghc and needs -K20M
As a guess: since 'mapM print ([1..102400] :: [Integer])'
has
[EMAIL PROTECTED] (Sengan Baring-Gould) wrote:
mapM seems to be a memory hog (and thus also concatMapM).
In the following eg:
main = mapM print ([1..102400] :: [Integer])
memory usage climbs to 1.6M with ghc and needs -K20M
As a guess: since 'mapM print ([1..102400] ::
[EMAIL PROTECTED] (Sengan Baring-Gould) wrote:
mapM seems to be a memory hog (and thus also concatMapM).
In the following eg:
main = mapM print ([1..102400] :: [Integer])
memory usage climbs to 1.6M with ghc and needs -K20M
As a guess: since 'mapM print ([1..102400]
14 matches
Mail list logo