ghc-cvs-snapshot with wxHaskell

2005-02-07 Thread Patrick Scheibe
Hi, It seems that there are changes in the OpenGl library during the last month. So I decided to load a really young cvs version of the ghc (ghc-6.5.20050206-src.tar.bz2). The compilation works fine. My Problem is, that I also need the wxHaskell library. This compilation fails with the message

RE: Process library and signals

2005-02-07 Thread Glynn Clements
Simon Marlow wrote: > >> I think this covers most of the useful situations. If you want to do > >> the same thing in both parent and child, or handle in the parent and > >> SIG_DFL in the child: use runProcess. If you want to ignore in the > >> parent and SIG_DFL in the child: use System.Cmd.{s

RE: Unboxed Tuples

2005-02-07 Thread Simon Peyton-Jones
| Thanks. Sorry if I'm being a bit dim, but could you tell me if ghc | will optimise out the boxed tuple construction in both these cases? It depends if the "..." is strict in 'p' or 'q'. If not, no it won't get optimised away, and rightly so. Exmape f x = let (p,q) = case h x of (# p,

Re: Unboxed Tuples

2005-02-07 Thread Adrian Hey
On Monday 07 Feb 2005 9:28 am, Simon Peyton-Jones wrote: > Good point. Yes you can rely on it; but the binding is lazy. So for > this > > h :: Int -> (# String, String #) > h = ... > > > f x = let (# p,q #) = h x in ... > > you'll get > > f x = let (p,q) = case h x of (# p

RE: readline fun

2005-02-07 Thread Simon Marlow
On 02 February 2005 15:51, Ian Lynagh wrote: > The Debian ghc6 package curently has both a build-dependency and a > normal dependency on libreadline4-dev. The former is so the readline > library (and ghci) can be built, and the latter so compiling programs > with the readline package behaves corre

Re: STM check/MonadPlus

2005-02-07 Thread Remi Turk
On Mon, Feb 07, 2005 at 10:53:36AM -, Simon Peyton-Jones wrote: > Thanks for the typo. Yes, for Haskell guys 'guard' is fine; but the > main audience for the paper is non-haskell folk, so we have to spell out > the defn. > > S Hm, what about calling it `guard' and adding a footnote saying th

RE: Process library and signals

2005-02-07 Thread Simon Marlow
On 02 February 2005 14:39, Glynn Clements wrote: > Simon Marlow wrote: >> I think this covers most of the useful situations. If you want to do >> the same thing in both parent and child, or handle in the parent and >> SIG_DFL in the child: use runProcess. If you want to ignore in the >> parent a

RE: debugging memory allocations

2005-02-07 Thread Simon Marlow
On 02 February 2005 18:42, Duncan Coutts wrote: > On Wed, 2005-02-02 at 17:01 +, Simon Marlow wrote: >> On 02 February 2005 13:38, Duncan Coutts wrote: >>> Would looking at the core files help? What would I be looking for? >>> >>> Here's a simple version that I would expect to run in constanc

RE: STM check/MonadPlus

2005-02-07 Thread Simon Peyton-Jones
Thanks for the typo. Yes, for Haskell guys 'guard' is fine; but the main audience for the paper is non-haskell folk, so we have to spell out the defn. S | -Original Message- | From: [EMAIL PROTECTED] [mailto:glasgow-haskell-users- | [EMAIL PROTECTED] On Behalf Of Remi Turk | Sent: 06 Feb

RE: Unboxed Tuples

2005-02-07 Thread Simon Peyton-Jones
Good point. Yes you can rely on it; but the binding is lazy. So for this h :: Int -> (# String, String #) h = ... f x = let (# p,q #) = h x in ... you'll get f x = let (p,q) = case h x of (# p,q #) -> (p,q) in ... So the call to h only happens