Re: DeepSeq

2002-07-22 Thread Phil Trinder
Dean, George, >Would it be possible to bring the DeepSeq library into the libraries >distributed with GHC? (I think Dean Herington is responsible for it.) > >Of course it's easy enough to drop it into one's own program (I am just >about to do this) but >(1) It is fairly common to want to force d

RE: ANNOUNCE: GHC version 5.04 released

2002-07-22 Thread Simon Marlow
> I've patched up an install script for OpenBSD users of GHC who: > > - would like to install it somewhere other than /usr/local > - do not have root priviledges on their machine > > Note that uninstallation must be by hand if you use this script, as we > bypass the pkg system

RE: Docs missing?

2002-07-22 Thread Simon Marlow
The RPMs of documentation are currently not quite right - they don't contain any of the Haddock-generated docs or the index.html that ties it all together. We know about the problem, but no-one has had the time (or in my case, the RPM-savvyness) to fix it yet. Michael Weber said: > In the ghc5-

RE: Type of newForeignPtr & addForeignPtrFinalizer

2002-07-22 Thread Simon Marlow
[ sorry for the delay in replying to this one, I'm just trying to clear some of my backlog... ] > I have a feeling this may be a stupid question, but why are the > types of these.. > newForeignPtr :: Ptr a -> IO () -> IO (ForeignPtr a) > addForeignPtrFinalizer :: ForeignPtr a -> IO ()

RE: fno-implicit-prelude and literal numeric patterns

2002-07-22 Thread Simon Peyton-Jones
| The user's guide is silent about which version of Eq is used | for literal patterns, but I assume that it follows the (n+k) | example and so Prelude Eq is used for the overloaded use of ==. That's right. I'll add a note to that effect in the users guide. | What is the reason for using Prel

RE: make -j2 fails on SMP with ghc-5.04

2002-07-22 Thread Simon Marlow
On Monday 15. July 2002 12:38, Simon Marlow wrote: > > > I have a dual Athlon box, make -j2 fails, but make works. > > > Is that normal? > > > > I did some tweaking to the build system to help -jN builds, but I > > haven't tested a complete build this way. Whereabouts does > it fall over > > fo

FreeBSD port for 5.04 now committed

2002-07-22 Thread Simon Marlow
The FreeBSD folks have been kind enough to commit the update for the ghc port to 5.04. FreeBSD users: cvsup your /usr/ports, cd /usr/ports/lang/ghc && make install, or wait for the package to appear on your local mirror site and try 'pkg_add -r ghc'. Cheers, Simon ___

Deadlock detection different in ghc-5.04?

2002-07-22 Thread Volker Stolz
Hi, for some concurrency abstractions I decided to use deadlock detection by means of exceptions which didn't work out as expected. Below is some simplifed source code showing the problem: My assumption was since GHC should be able to detect that the child still has a reference to mv_should_work -

RE: comparison of execution speed of array types

2002-07-22 Thread Hal Daume III
> Could you try IOUArray for completeness too? (An IOUArray is the > unboxed version of IOArray, it can be found in Data.Array.IO). It fits in as the fastest: IOUnboxedMutArray 0.48u 0.04s 0:00.58 89.6% > > NormalArray 1.65u 0.20s 0:01.89 97.8% > > NormalArrayReplace

RE: Deadlock detection different in ghc-5.04?

2002-07-22 Thread Simon Marlow
> Hi, for some concurrency abstractions I decided to use deadlock > detection by means of exceptions which didn't work out as expected. > Below is some simplifed source code showing the problem: My assumption > was since GHC should be able to detect that the child still has a > reference to mv_sho

error building greencard with ghc 5.04

2002-07-22 Thread Hal Daume III
probably a result of the libraries (probably = certainly), but i get: ../../src/green-card --target ghc StdDIS.gc ghc -fglasgow-exts -fno-prune-tydecls -fvia-C -package lang -package util -c StdDIS.hs -o StdDIS.o StdDIS.hs:39: Module `Foreign' does not export `ForeignObj' StdDIS.hs:39: Module `

Re: error building greencard with ghc 5.04

2002-07-22 Thread Alastair Reid
> anyone have a patch? I think the CVS repository has a patch. If not, try adding 'import ForeignObj' to StdDIS.gc. Probably wise to reexport ForeignObj from StdDIS.gc too. [Can't test this since I'm using someone else's box this week and it'll take a few days for my upgrade to 5.04 request to

Foreign.destructArray

2002-07-22 Thread Hal Daume III
what happened to Foreign.destructArray? I can't seem to find it anywhere... Also, has anyone thought of putting a search-engine front end on to the Haskell documentation? Even just a search on google using site:haskell.cs.yale.edu filetype:html inurl:docs would be nice, once google decides

Re: comparison of execution speed of array types

2002-07-22 Thread Manuel M T Chakravarty
Hal Daume III <[EMAIL PROTECTED]> wrote, > clearly IOMutArray is the best, even outperforming the > UnboxedArray. Unfortunately, writing code in the IOMutArray format is > much uglier than writing it in the UnboxedArray or NormalArray formats, > even though I know that I'm never going to refer t