Re: Giving profiled object files a different extension (was: RE: Profiling suggestion)

2002-05-12 Thread Ketil Z. Malde
"Simon Marlow" <[EMAIL PROTECTED]> writes: > The proposal, therefore, is to extend the meaning of '-prof' to mean > '-prof -osuf p_o -hisuf p_hi' or similar. I wasn't aware of these ('-*suf') options. Are they respected by the linker stage? I.e. will ghc --make when invoked with -osuf and -his

Replacing the Prelude

2002-05-12 Thread Ashley Yakeley
I have recently been experimenting writing code that replaces large chunks of the Prelude, compiling with -fno-implicit-prelude. I notice that I can happily redefine numeric literals simply by creating functions called 'fromInteger' and 'fromRational': GHC will use whatever is in scope for tho

Re: composeList

2002-05-12 Thread David Feuer
See comments below. On Sun, May 12, 2002, David Feuer wrote: > On Sun, May 12, 2002, Emre Tezel wrote: > > Hi all, > > > > I recently bought Simon Thompson's Haskell book. I have been doing the > > exercises while I read on. There are couple questions that I can not > > solve. Any help would b

Prelude.catch vs. Exception.catch

2002-05-12 Thread Ashley Yakeley
I notice that Prelude.catch and Exception.catch behave differently, even though they both have the same type signature (and name). Exception.catch catches exceptions that Prelude.catch does not. For instance, it is possible to bind pure functional exceptions into the IO monad using Exception.e

Re: List.sort

2002-05-12 Thread Claus Reinke
> I am curious as to why the List.sort implementation in GHC is a > quicksort algorithm rather than an algorithm that guarantees n log n > time in the worst case? I'm not going to defend quicksort here, but your question reminded me of another one, asked a while ago on comp.lang.functional (actu