RE: Profiling question

2003-01-06 Thread Simon Peyton-Jones
Not currently. It's not clear what a point in execution *is*! The top-level IO monad thread might provide such a point, but even then it might not be clear how much of a lazy data structure had been evaluated by that point. I could see sense in having an I/O operation markProfile ::

RE: Template Haskell reification

2003-01-06 Thread Simon Peyton-Jones
| Why is it that one can't reify top level function declarations? At the | moment it only seems that we can reify type declarations. No immediate | reason for this seems to spring to mind, but there may be one. [I'm interested to know something about your application, incidentally.] Several

Suggested improvements to .hi-boot files

2003-01-06 Thread George Russell
I am using .hi-boot files quite a lot at the moment. I'm very grateful for the recent change to a more Haskelly syntax, but I have a couple of suggestions for the GHC team to implement in their no doubt ample free time. 8-) (1) Importing a module {-# SOURCE #-} into itself currently produces a

Re: Profiling question

2003-01-06 Thread Malcolm Wallace
Kirsten Chevalier [EMAIL PROTECTED] writes: I'd like to be able to determine the percentage of allocated objects of a particular type at specific points in a program's execution. I know that I can use heap profiling to create a graph of memory usage broken down by type, but is there any way

RE: Proposal for GHC documentation

2003-01-06 Thread Simon Marlow
The rewritten documentation can be translated to HTML using just a standard xsltproc tool (available for both Cygwin Linux) and XSLT DocBook stylesheet. The main advantage of XML version is that there is already developed XSLT stylesheet which generates input for Microsoft HTML Help

RE: Run-time options in ghc on Linux

2003-01-06 Thread Simon Marlow
Ok, $ cat null.hs module Main(main) where main = return () $ ghc null.hs -o null $ ./null +RTS -? $ Is your GHCRTS environment variable set to anything? Cheers, Simon ___ Glasgow-haskell-users mailing list [EMAIL PROTECTED]

RE: reaping fd's and flushing buffers

2003-01-06 Thread Simon Marlow
Sure enough, after I say that all my fd reaping issues are solved at the Haskell level, I've been bitten by issues that look like the RTS doing things behind my back wrt. reaping fd's etc. etc. Basically, while I used socketToHandle the fd's got closed prematurely, and once I eliminated

Re: reaping fd's and flushing buffers

2003-01-06 Thread William Lee Irwin III
On Mon, Jan 06, 2003 at 02:02:13PM -, Simon Marlow wrote: ... actually I've just looked at the code and it looks wrong, aargh! The finalizer is attached to the wrong side. If you have a source tree handy, try changing the following line in libraries/base/GHC/Handle.hs: addMVarFinalizer

RE: Suggested improvements to .hi-boot files

2003-01-06 Thread Simon Marlow
Thanks for the suggestions, George. May I suggest that a good place for these things is the Feature Requests tracker on the GHC SourceForge page - otherwise good suggestions tend to get lost if we don't implement them immediately. I am using .hi-boot files quite a lot at the moment. I'm

RE: --show-iface bug?

2003-01-06 Thread Simon Marlow
John Meacham wrote: [...] --show-iface seems to not be able to show .hi files created when profiling is turned on. [...] Use the (undocumented :-) option -buildtag p *before* --show-iface, e.g. ghc -buildtag p --show-iface Foo.p_hi It doesn't work after --show-iface,

Linking with object files

2003-01-06 Thread Adrian Hey
Hello, I seem to be having some trouble doing this and have a couple of questions.. The first question is how do you use --make option when doing this? Section 4.5 of the users guide seems to contradictory to me. It states.. The command line must contain one source file or module name and

Re: Profiling question

2003-01-06 Thread John Meacham
Ah, I'd definatly like to request it for GHC. as well as a version in the IO monad, I have wanted both on various occasions. John On Mon, Jan 06, 2003 at 12:55:35PM +, Malcolm Wallace wrote: Kirsten Chevalier [EMAIL PROTECTED] writes: I'd like to be able to determine the