When interrupting this program, the signal handler does not
get called:
module Main where
import Posix
main = do
installHandler 2 (Catch (putStrLn Hello, world!)) Nothing
sleep 600
-- putStr
Try using Concurrent.threadDelay instead of
On Mon, Oct 29, 2001 at 02:52:25PM -, Simon Marlow wrote:
The blocking is essential since I need to be able to use MVars
between the threadWaitRead the hGetLine (remember the note I
sent about fork()ing).
Sorry, I can't remember that - could you remind me? The hGetLine
already
I discovered a minor cosmetic bug today. After my
undescribable hapiness about the fact that GHCi now has the
:i command, I started playing around, and discovered the
following ugly output:
Prelude :i []
-- [] is a data constructor
[] :: forall t_12. [t_12]
Thanks, I've fixed
Thanks for your help Simon.
Unfortunately I think I have spent enough time on this, and not enough
on what I would like it for, without getting there - I may try again in
the future if the porting process becomes better documented/tested.
Ian
___
Hi, I got the following error message:
___ ___ _
/ _ \ /\ /\/ __(_)
/ /_\// /_/ / / | | GHC Interactive, version 5.02, for Haskell 98.
/ /_\\/ __ / /___| | http://www.haskell.org/ghc/
\/\/ /_/\/|_| Type :? for help.
Loading package std ... linking
I later ran into another problem that may or may not be related with the
first. This is the program I am running:
module Main where
import Posix
main = do
installHandler sigCONT (Catch (putStrLn - resumed -)) Nothing
forever $ do
c - getChar