RE: eval in ghc(i)?

2006-05-04 Thread Simon Peyton-Jones
| /me ponders an api ... | | Something like: | | GHC.Top.init | f - run let add1 x = x + 1 | f 7 | 8 GHC's api has a clear notion of a session that I believe we should not lose. So it'd be s - GHC.Top.init f - run s \x - x+1 f 7 Here s is the

Re: Unregisterised GHC 6.4.2 on the ARM success -- now what?

2006-05-04 Thread Duncan Coutts
On Wed, 2006-05-03 at 22:06 -0700, Jeremy Shaw wrote: Hello, I believe I have successfully got an unregisterised version of ghc 6.4.2 compiled for arm/linux. Cool! Well done. I know there are several people who wanted to use ghc on the 770. Previously hugs and yhc have been made to work on

Re: eval in ghc(i)?

2006-05-04 Thread Simon Marlow
Lemmih wrote: On 5/4/06, Donald Bruce Stewart [EMAIL PROTECTED] wrote: geoffw: I have an application written in OCaml that I'm interested in porting over to Haskell, and I was wondering what the best way to replace the following OCaml function would be:

Re: Unregisterised GHC 6.4.2 on the ARM success -- now what?

2006-05-04 Thread Simon Marlow
Duncan Coutts wrote: On Wed, 2006-05-03 at 22:06 -0700, Jeremy Shaw wrote: Hello, I believe I have successfully got an unregisterised version of ghc 6.4.2 compiled for arm/linux. Cool! Well done. I know there are several people who wanted to use ghc on the 770. Previously hugs and yhc have

Re: import prefers module in package over local module

2006-05-04 Thread Michael Marte
Simon Marlow wrote: Deprecation warnings seem to be working fine: $ ghc -c Foo.hs -package text Foo.hs:2:0: Warning: Module `Pretty' is deprecated: This module has moved to Text.PrettyPrint.HughesPJ Also, the documentation for the text package clearly states in several

Re: import prefers module in package over local module

2006-05-04 Thread Simon Marlow
Michael Marte wrote: Simon Marlow wrote: Deprecation warnings seem to be working fine: $ ghc -c Foo.hs -package text Foo.hs:2:0: Warning: Module `Pretty' is deprecated: This module has moved to Text.PrettyPrint.HughesPJ Also, the documentation for the text package clearly

deriving existential types

2006-05-04 Thread Marc Weber
I sometimes do this - class (Show c) = C c where foo = show c data CObj= forall c. (C c, Show c) = CObj c instance C Cobj where -- my existantial type should also implement class C foo (CObj c) = foo c - Would it be a nice idea to just write - data CObj= forall c. (C c, Show c)

Building head numerics project

2006-05-04 Thread Creighton Hogg
Hi,So I'm interested in working on the project on improving numerics performance in GHC proposed on the SoC page herehttp://hackage.haskell.org/trac/summer-of-code/ticket/13 Since I have a full time job, I'd just like to do this on my own time rather than take up an SoC slot.In that vein, Don

Re: Unregisterised GHC 6.4.2 on the ARM success -- now what?

2006-05-04 Thread Jeremy Shaw
At Wed, 03 May 2006 22:06:05 -0700, Jeremy Shaw wrote: Hello, I believe I have successfully got an unregisterised version of ghc 6.4.2 compiled for arm/linux. Updates: --- 1) I turns out I only had a in-place build of ghc, I have now got a real build 'working'. 2) I have started