RE: Small JAPI binding for GHC in CVS

2003-02-19 Thread Mike Thomas
Thanks Malcolm. | Unfortunately, the module Graphics.UI.Japi.Types uses a ghc-only | extension: deriving on newtypes for the classes Integral, Real, | Num, and Enum. If it wasn't for that, it would be very portable. Woops. I'll try and work out a way of fixng that up after I get the GNU Common

concurrent assertions [was re: awaitEval etc]

2003-02-19 Thread Colin Runciman
Dean Herrington has mailed me to point out that the metatype is unnecessary: class Assert a where assertW :: MVar a -> a -> a assertR :: MVar a -> a instance Assert a => Assert [a] where assertW mv [] = unsafePerformIO $ do putMVar mv []; return [] assertW mv (x:xs) = unsafePerformIO $ do

Re: FreeBSD + FIFO pipes

2003-02-19 Thread George Russell
Volker Stolz wrote:> In local.glasgow-haskell-users, you wrote: I'm trying to get HTk to work on FreeBSD (actually FreeBSD running inside a VMware virtual machine, but I don't think that should make any difference). How HTk works is it creates a couple of pipes (readIn,writeIn) <- Posix.c

RE: effect of order of function arguments

2003-02-19 Thread Josef Svenningsson
[moved over to glasgow-haskell-users] On Wed, 19 Feb 2003, Simon Peyton-Jones wrote: > | GHC used to have an optimisation for static argument like this. It > would > | turn both of the above programs into a similar form using a local > | recursive function: > | > | interp y xs = interpaux xs > |

Re: Small JAPI binding for GHC in CVS

2003-02-19 Thread Malcolm Wallace
"Mike Thomas" <[EMAIL PROTECTED]> writes: > Under "fptools/libraries/Japi" (the GHC CVS repository) please find a > preliminary binding to a subset of the Japi library: Looks useful. > it avoids callbacks and uses the Haskell 98 > FFI so I would expect it to be easy to port to "nhc98". Unfortun

Re: FreeBSD + FIFO pipes

2003-02-19 Thread Volker Stolz
In local.glasgow-haskell-users, you wrote: > I'm trying to get HTk to work on FreeBSD (actually FreeBSD running inside a VMware > virtual machine, but I don't think that should make any difference). How HTk works > is it creates a couple of pipes >(readIn,writeIn) <- Posix.createPipe >

FreeBSD + FIFO pipes

2003-02-19 Thread George Russell
Yes I know it's a FAQ, but despite the information in the GHC FAQ I can't get my program to work. I'm trying to get HTk to work on FreeBSD (actually FreeBSD running inside a VMware virtual machine, but I don't think that should make any difference). How HTk works is it creates a couple of pipes

Re: awaitEval in Concurrent Haskell

2003-02-19 Thread Colin Runciman
Claus, The need to shadow the data types is a bit annoying, but then the whole generic bit would preferably be generated anyway. Template Haskell to the rescue, or Drift?-) Agreed. Current plan is to use Drift There is still something I don't understand about your specification: the assertio

RE: The semantics of Core?

2003-02-19 Thread Simon Peyton-Jones
I seriously doubt that you want to produce all the .hcr files for the entire set of GHC's libraries. They'll be pretty big. But if you do, just get a GHC build tree, make your GHC, get into the libraries tree (fptools/libraries) and type make EXTRA_HC_OPTS=-fext-core That'll build the