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
| Note that in GHC, the version number of a function can
| often change for hard-to-spot reasons. You just need to
| change (for example) the strictness properties of the
| function, which can be very easy to do when making changes to
| your code. The compiler cares about (much) more than
From: Julian Seward (Intl Vendor) [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
X-OriginalArrivalTime: 30 Oct 2001 09:55:44.0099 (UTC)
FILETIME=[0A82EB30:01C16129]
Sven
| from time to time ghc compiled programs simply crash on
| my windows2000
The following code works...
= \x y - (x+y - length [1..(gcd x y)] = round (((fromIntegral
x)+1)/2) )
-- Andre
hello,
Does anybody know why it is not possible to define the folowing function
in ghc?
= \x y - (x+y - length [1..(gcd x y)] = round ((x+1)/2)) )
The message
Wolfgang Jeltsch wrote (on 29-10-01 23:43 +0100):
you cannot use sections with types and (-). Furthermore the variable must
begin with a lowercase letter. So you have to write
instance Functor (-) a where.
Erp, I said that the Functor class has arity *. Actually, it has arity 1
(i.e., it
I'm curious why the following code is invalid (from a language design
point of view):
foo :: [(Int, String)] - String
foo [] =
foo = snd . head
ghc complains:
Varying number of arguments for function `foo'
I don't understand why this should be invalid? Basically, as I read
it, I say,
At 2001-10-30 11:01, Hal Daume wrote:
obviously i can rewrite:
foo [] =
foo s = (snd . head) s
but this is uglier.
I'm not sure. I actually prefer it written out so that the number of
arguments in the cases matches (as GHC enforces).
--
Ashley Yakeley, Seattle WA
Ashley Yakeley wrote:
At 2001-10-30 11:01, Hal Daume wrote:
obviously i can rewrite:
foo [] =
foo s = (snd . head) s
but this is uglier.
I'm not sure. I actually prefer it written out so that the number of
arguments in the cases matches (as GHC enforces).
It's defined in the
Hi,
The Vim syntax file for literate Haskell programs handles code lines that
begin with a '' character fine. But in GHC much of the code is defined
between \begin{code} and \end{code} pairs, and that shows up as one
giant comment.
Does anybody know where I might be able to obtain a Vim syntax
Hi.
That's my hacked syntax files
Max.
On Tue, Oct 30, 2001 at 02:22:07PM +, Nicholas Nethercote wrote:
Hi,
The Vim syntax file for literate Haskell programs handles code lines that
begin with a '' character fine. But in GHC much of the code is defined
between \begin{code} and
At 9:38pm on Oct 30, 2001, [EMAIL PROTECTED] wrote:
My (current) problem lies in whatPic, which returns the error
Program error: {whatPic Facing2_North (1,6)}
if I type in
whatPic North (1,6)
or just call it through the draw2 function (which is supposed to be the
main drawing function, and
Hehe sure :) If I DO finish it that is :)
It should actually be close to being at the state where I just have to add
different images and when to display them. Then I need to work on some
kind of function to allow it to take 'w','s','n'and 'e' as input, or if I
can, the arrow keys.
Btw, I see
17 matches
Mail list logo