Re: ghc-6.6 mac intel "binary bundle"

2006-10-16 Thread Deborah Goldsmith
On Oct 16, 2006, at 9:16 AM, Rodney D Price wrote: bunzip2 ghc-6.6-i386-apple-darwin.tar.bz2 tar -xvf ghc-6.6-i386-apple-darwin.tar These can be combined in one step: tar -xfvj ghc-6.6-i386-apple-darwin.tar.bz2 Deborah ___ Glasgow-haskell-users mai

Re: Link errors when using the GHC API

2006-10-16 Thread Bas van Dijk
> Yeah. That'd have a different quick fix: > > cp /usr/lib/ghc-6.6/libHSCabal.a /usr/lib/Cabal-1.1.6/ghc-6.6/ > > because ghci uses the .o files and ghc uses the .a ones. Thanks it works! Now I can finally start playing with the GHC API. Bas ___ Glasgow

Re: Compiling GHC disabling the type checker

2006-10-16 Thread roconnor
On Mon, 16 Oct 2006, Simon Marlow wrote: There's one restriction that I know of: you should be careful not to cast a function value to a non-function type (except a polymorphic type), because the two have incompatible representations when it comes to seq and case. And of course, you should nev

Re: Link errors when using the GHC API

2006-10-16 Thread Duncan Coutts
On Mon, 2006-10-16 at 17:42 +0200, Bas van Dijk wrote: > On Monday 16 October 2006 12:41, Duncan Coutts wrote: > > This is a problem with the way we have packaged it for Gentoo. We know > > the source of the problem and will fix it soon. > > Great, thanks. > > On Monday 16 October 2006 12:46, Cle

RE: scoped tyvar

2006-10-16 Thread Simon Peyton-Jones
I don't know about Hugs, but you can add an explicit 'forall' to the type sig for allocUnboxed, to bring the type variables into scope. http://www.haskell.org/ghc/docs/latest/html/users_guide/type-extensions. html#scoped-type-variables S | -Original Message- | From: Bulat Ziganshin [mailt

scoped tyvar

2006-10-16 Thread Bulat Ziganshin
Hello glasgow-haskell-users, should the following work in 6.6? -- | Alloc the mutable byte vector having `elems` elements of required type allocUnboxed :: (STorIO m s, Integral elems, Unboxed a) => elems -> m (MUVec s a) allocUnboxed elems :: m (MUVec s a) = -- it's line 149

Re: ghc-6.6 mac intel "binary bundle"

2006-10-16 Thread Rodney D Price
Here's what worked for me: bunzip2 ghc-6.6-i386-apple-darwin.tar.bz2 tar -xvf ghc-6.6-i386-apple-darwin.tar cd ghc-6.6 ./configure sudo make show-install-setup sudo make install ghc --version The Glorious Glasgow Haskell Compilation System, version 6.6 I'm on a MacBook Pro running OS X 10.4.8.

Hacking on GHC interactively with GHCi

2006-10-16 Thread Clemens Fruhwirth
Hello everyone, I would like to hack on GHC interactively. My aim is to load ghc into ghci and start hacking a source file in one emacs buffer, while the other hosts an inferior-haskell session connected to GHCi. I really like this kind of development style and found it to be way more productive t

Re: Link errors when using the GHC API

2006-10-16 Thread Bas van Dijk
On Monday 16 October 2006 12:41, Duncan Coutts wrote: > This is a problem with the way we have packaged it for Gentoo. We know > the source of the problem and will fix it soon. Great, thanks. On Monday 16 October 2006 12:46, Clemens Fruhwirth wrote: > The problem is Gentoo specific. Quick dirty f

Re: 6.4.3 and threaded RTS problems

2006-10-16 Thread Simon Marlow
Wolfgang Thaller wrote: Could someone on MacOS X try the 6.4.x branch again? I just committed a fix that makes the threaded RTS more stable on Solaris, and I'm hoping it clears up the problems on MacOS X too. Remember to re-enable -threaded in ghc/compiler/Makefile if you previously disa

Re: 6.4.3 and threaded RTS problems

2006-10-16 Thread Wolfgang Thaller
Could someone on MacOS X try the 6.4.x branch again? I just committed a fix that makes the threaded RTS more stable on Solaris, and I'm hoping it clears up the problems on MacOS X too. Remember to re-enable -threaded in ghc/compiler/Makefile if you previously disabled it. The problem se

Re: Parallel GC

2006-10-16 Thread Chad Scherrer
Sounds great, thanks! -Chad On 10/16/06, Simon Marlow <[EMAIL PROTECTED]> wrote: GHC 6.6 does run code in parallel on SMP hardware, but the GC is still single threaded. We have a prototype parallel GC, and I'm planning to work on it some more in the next few months... you'll probably see it i

Re: 6.4.3 and threaded RTS problems

2006-10-16 Thread Simon Marlow
Could someone on MacOS X try the 6.4.x branch again? I just committed a fix that makes the threaded RTS more stable on Solaris, and I'm hoping it clears up the problems on MacOS X too. Remember to re-enable -threaded in ghc/compiler/Makefile if you previously disabled it. If this does indeed

load stdm problem

2006-10-16 Thread TOPE KAREM
Hi,   After downloading Haskell 98 (current version), I tried to load stdm by typing :load stdm I kept gettin could not find module 'stdm'   I added path under system variables under environment variables like this: control panel/system/Aadvanced/(under system variable)Environment variables/path  

Re: ghc for PC Solaris

2006-10-16 Thread Simon Marlow
Christian Maeder wrote: I would like to get ghc (version 6.6) working for our students. The machines are ATHLON-64 with Solaris 10. (SunOS 5.10 Generic_118855-19 i86pc i386 i86pc) If someone has a binary distribution of any ghc version (that is able to build ghc-6.6), please let me know. > B

Re: Bad control characters in GHCi 6.6 (Mac OS X PPC)

2006-10-16 Thread Simon Marlow
Björn Buckwalter wrote: I downloaded the GHC 6.6 tarballs, built and installed them on my mac (Tiger, PPC) using the documented procedure: ./configure make make install The build and install was fairly smooth. However, ghci will not recognize "control characters", e.g. delete/backspace, arro

Re: Compiling GHC disabling the type checker

2006-10-16 Thread Josef Svenningsson
FWIW, Lennart Augustsson's Cayenne compiler can compile to GHC nowadays. It uses exactly this method of sprinkling coerce all over the place to make GHC's typechecker happy. http://www.augustsson.net/Darcs/Cayenne/ Cheers, Josef On 10/16/06, Simon Marlow <[EMAIL PROTECTED]> wrote: Neil Mitche

Re: Parallel GC

2006-10-16 Thread Simon Marlow
Chad Scherrer wrote: IIRC, there was some work being done this past summer on parallelizing GC for SMP GHC (I think that's my current record for most acronyms in one sentence). GHC 6.6 is reported as having single-threaded GC, and I'm wondering if an unforeseen technical problem might have come u

Re: Compiling GHC disabling the type checker

2006-10-16 Thread Simon Marlow
Neil Mitchell wrote: I would like to write a translator which takes a Haskell-like language to GHC compilable Haskell. This Haskell-like language is not explicitly typed, and cannot have types inferred for it (rank 2 types may exist etc), however it is known that the program will not crash with

Re: Link errors when using the GHC API

2006-10-16 Thread Clemens Fruhwirth
At Mon, 16 Oct 2006 12:29:22 +0200, Bas van Dijk <[EMAIL PROTECTED]> wrote: > > (I noticed my reply to Mathew Mills didn't reach the GHC list, so here it is.) > > On Wednesday 11 October 2006 21:53, Mathew Mills wrote: > > Interesting. I was unable to reproduce your problem. What platform > >

Re: foldl laziness support. Reply

2006-10-16 Thread Neil Mitchell
Hi I do not see foldl' in the standard library. Is it of the GHC lib extension? has it strictness annotation? Hoogle it! http://haskell.org/hoogle/?q=foldl%27 Data.List.foldl' :: (a -> b -> a) -> a -> [b] -> a Thanks Neil ___ Glasgow-haskell-u

Re: foldl laziness support. Reply

2006-10-16 Thread Duncan Coutts
On Mon, 2006-10-16 at 14:23 +0400, Serge D. Mechveliani wrote: > Concerning the laziness support problem, > > I thank people for explanations about foldl and foldr. > > >> I wonder how to avoid these numerous cost pitfalls. > >> Maybe, the complier could do more optimization? > > > Duncan Cout

Re: Link errors when using the GHC API

2006-10-16 Thread Duncan Coutts
On Mon, 2006-10-16 at 12:29 +0200, Bas van Dijk wrote: > (I noticed my reply to Mathew Mills didn't reach the GHC list, so here it is.) > > On Wednesday 11 October 2006 21:53, Mathew Mills wrote: > > Interesting. I was unable to reproduce your problem. What platform > > are you running on? Are

Re: Link errors when using the GHC API

2006-10-16 Thread Bas van Dijk
(I noticed my reply to Mathew Mills didn't reach the GHC list, so here it is.) On Wednesday 11 October 2006 21:53, Mathew Mills wrote: > Interesting. I was unable to reproduce your problem. What platform > are you running on? Are you using a binary distribution or one you > built from source?

foldl laziness support. Reply

2006-10-16 Thread Serge D. Mechveliani
Concerning the laziness support problem, I thank people for explanations about foldl and foldr. >> I wonder how to avoid these numerous cost pitfalls. >> Maybe, the complier could do more optimization? Duncan Coutts <[EMAIL PROTECTED]> writes > There are important differences between foldl,

RE: Compiling GHC disabling the type checker

2006-10-16 Thread Simon Peyton-Jones
| How does GHC react to a really large number of unsafeCoerce's? Is this | likely to destroy performance? Has anything like this been done | before? I know that LML was able to "turn off" the type checker, but I | guess GHC doesn't have such an option, because of its typed Core | language. I've ne