RE: [Haskell] (GHC) Boot files and instance declarations

2006-05-03 Thread Simon Peyton-Jones
At the moment GHC just doesn't support this, I'm afraid. It's a shortcoming, and one that could be fixed, but not in a minute or two. You'll have to find some other way to reorganise your code, I think. Incidentally questions specific to GHC belong on ghc-users, to which I have redirected this

Re: Building ghc-6.4 on Solaris x86

2006-05-03 Thread Simon Marlow
Georg Sauthoff wrote: Ok, I tried[1] that and like I guessed, now I get again the infamous 'Prologue junk?' error' again: ../../ghc/compiler/ghc-inplace -H16m -O -O2 -static -I. -#include Prelude.h -#include Rts.h -#include RtsFlags.h -#include RtsUtils.h -#include StgRun.h -#include

Re: import prefers module in package over local module

2006-05-03 Thread Simon Marlow
I'm afraid I don't understand: there's no Pretty module in the standard libraries, only Text.PrettyPrint. Could you describe in more detail what's going wrong? (provide example code and exact command lines, cut paste error messages). Cheers, Simon Michael Marte wrote: Simon, I

Re: On GHC HEAD, Fefora Cote 5 and SELinux

2006-05-03 Thread Simon Marlow
wld wrote: As described in trac ticket 738, GHC HEAD does not work on Fedora Core 5 with selinux in enforcing mode. Selinux is the additional level of protection in Linux kernel that works above usual Unix permissions. Turning selinux to permissive mode (as suggested in the workaround to make

Re: import prefers module in package over local module

2006-05-03 Thread Tomasz Zielonka
On Wed, May 03, 2006 at 11:53:19AM +0100, Simon Marlow wrote: I'm afraid I don't understand: there's no Pretty module in the standard libraries, only Text.PrettyPrint. There is a Pretty module in the text package. It seems that Michael uses ghc -package text. Best regards Tomasz

Re: import prefers module in package over local module

2006-05-03 Thread Simon Marlow
Tomasz Zielonka wrote: On Wed, May 03, 2006 at 11:53:19AM +0100, Simon Marlow wrote: I'm afraid I don't understand: there's no Pretty module in the standard libraries, only Text.PrettyPrint. There is a Pretty module in the text package. It seems that Michael uses ghc -package text. Ok

Re: import prefers module in package over local module

2006-05-03 Thread Michael Marte
Simon Marlow wrote: Tomasz Zielonka wrote: On Wed, May 03, 2006 at 11:53:19AM +0100, Simon Marlow wrote: I'm afraid I don't understand: there's no Pretty module in the standard libraries, only Text.PrettyPrint. There is a Pretty module in the text package. It seems that Michael uses ghc

Re: Building ghc-6.4 on Solaris x86

2006-05-03 Thread Georg Sauthoff
On Wed, May 03, 2006 at 11:50:46AM +0100, Simon Marlow wrote: Hi, You shouldn't see the %ebp instructions, because gcc should be invoked with -fomit-frame-pointer. Is it possible that somehow part of your build thinks it is unregisterised? I hope not. Started with a fresh tree and

Re: Building ghc-6.4 on Solaris x86

2006-05-03 Thread Georg Sauthoff
On Wed, May 03, 2006 at 05:56:18PM +0200, Georg Sauthoff wrote: On Wed, May 03, 2006 at 11:50:46AM +0100, Simon Marlow wrote: Hi, [..] Try running GHC with -v, see whether the -fomit-frame-pointer flag is being passed to gcc. If not, try to find out why - it should be added by code in

eval in ghc(i)?

2006-05-03 Thread Geoffrey Alan Washburn
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: Toploop.initialize_toplevel_env();; let eval txt = let lb = (Lexing.from_string txt) in let phr =

Re: eval in ghc(i)?

2006-05-03 Thread Donald Bruce Stewart
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: Toploop.initialize_toplevel_env();; let eval txt = let lb = (Lexing.from_string txt) in

Re: WordPtr,IntPtr,IntMax,WordMax

2006-05-03 Thread John Meacham
On Tue, May 02, 2006 at 03:29:16AM +, Aaron Denney wrote: On 2006-04-29, Manuel M T Chakravarty [EMAIL PROTECTED] wrote: Am Donnerstag, den 06.04.2006, 16:37 -0700 schrieb John Meacham: On Thu, Apr 06, 2006 at 04:28:01PM -0700, John Meacham wrote: I was curious if ghc could support the

Re: eval in ghc(i)?

2006-05-03 Thread Lemmih
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: Toploop.initialize_toplevel_env();;

Re: eval in ghc(i)?

2006-05-03 Thread wld
Hi, On 5/4/06, Lemmih [EMAIL PROTECTED] wrote: You can also use the GHC library: Prelude :m GHC Prelude GHC GHC.init (Just /home/david/coding/haskell/ghc/usr/lib/ghc-6.5) Prelude GHC session - newSession Interactive Prelude GHC setSessionDynFlags session = initPackages = getSessionDynFlags

Re: eval in ghc(i)?

2006-05-03 Thread Lemmih
On 5/4/06, wld [EMAIL PROTECTED] wrote: Hi, On 5/4/06, Lemmih [EMAIL PROTECTED] wrote: You can also use the GHC library: Prelude :m GHC Prelude GHC GHC.init (Just /home/david/coding/haskell/ghc/usr/lib/ghc-6.5) Prelude GHC session - newSession Interactive Prelude GHC setSessionDynFlags

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

2006-05-03 Thread Jeremy Shaw
Hello, I believe I have successfully got an unregisterised version of ghc 6.4.2 compiled for arm/linux. Details: --- I only had to do a minor bit of hacking -- this bug contains the details of what went wrong: http://hackage.haskell.org/trac/ghc/ticket/762 My target platform is the nokia

Re[2]: eval in ghc(i)?

2006-05-03 Thread Bulat Ziganshin
Hello Lemmih, Thursday, May 4, 2006, 6:32:17 AM, you wrote: Nothing, my patches for loading 'ghc' in ghci have resided in the main repository for a couple of months. afaik, Lemmih just uses HEAD (6.5), i.e. beta version of ghc, which is only version that includes this lib -- Best regards,