Re: [Haskell-cafe] Proposal: simple interface to libraries Haddock

2007-03-02 Thread Bryan O'Sullivan
David House wrote: I'm proposing something simple that should make it easier for both Haskell programmers and Haskell tool writers to find the documentation for a function. Like this? http://haskell.org/hoogle/?q=map b ___ Haskell-Cafe

Re: [Haskell-cafe] Very Basic IO question

2007-03-02 Thread Bryan O'Sullivan
Joe Olivas wrote: However, changing 'putStrLn' to 'putStr' does not do what I would expect. The prompt doesn't get displayed until after there is input: This isn't a Haskell issue per se. The runtime is putting stdout into line-buffered mode, so you need to import System.IO and use hFlush

Re: [Haskell-cafe] Using loop fusion for writing efficent high-level code Re[2]: [Haskell] [Fwd: Re: Computer Language Shootout]

2007-02-28 Thread Bryan O'Sullivan
Bulat Ziganshin wrote: can you please provide examples of such code? I'd recommend taking a look at the new binary package. It's very cleanly written, and mostly easy to understand. It's also easy to see where the optimisations have been made. The only part that might induce sudden

Re: [Haskell-cafe] Re: process

2007-02-23 Thread Bryan O'Sullivan
Dougal Stanton wrote: If it basically works, what goes wrong in my programm? Maybe something to do with compiler flags? No. This isn't even a Haskell-related problem, in all likelihood. Bidirectional interaction with another process over a pipe, particularly when the other process is

Re: [Haskell-cafe] Re: process

2007-02-23 Thread Bryan O'Sullivan
Bryan O'Sullivan wrote: Just because *your* end of each pipe is a line-buffered file handle has no bearing on the *other* process's management of its pair of endpoints. For example, on a Unix-like system, the other process's stdio will block-buffer stdin and stdout by default if it finds

Re: [Haskell-cafe] How to build a generic spreadsheet?

2007-02-23 Thread Bryan O'Sullivan
Greg Fitzgerald wrote: I want to write a program where a user would update a bunch of variables, and everything that depends on those variables (and nothing else) are recalculated. http://sigfpe.blogspot.com/2006/11/from-l-theorem-to-spreadsheet.html

[Haskell-cafe] Call for testers: using Cabal to build RPMs

2007-02-20 Thread Bryan O'Sullivan
I've got a branch of Cabal that adds a new command, rpm, that lets you build an RPM package with a single invocation: runhaskell Setup.*hs rpm I've tested this pretty extensively with GHC 6.6, and I'm quite happy with it, but if there are other users of RPM-based distros out there, I'd

Re: [Haskell-cafe] Re: Very fast loops. Now!

2007-02-12 Thread Bryan O'Sullivan
David Roundy wrote: I'm rather curious (if you're sill interested) how this'll be affected by the removal of the division from the inner loop. e.g. go :: Double - Double - Int - IO () go !x !y !i | i == 10 = printf %.6f\n (x+y) | otherwise = go

Re: [Haskell-cafe] Write Yourself a Scheme in 48 Hours

2007-02-01 Thread Bryan O'Sullivan
Shannon -jj Behrens wrote: I'm going through the Write Yourself a Scheme in 48 Hours http://halogen.note.amherst.edu/~jdtang/scheme_in_48/tutorial/overview.html tutorial. I like it a lot, but I have some concerns. Are the exercises in the tutorial known to be solvable by mere mortals? The

Re: [Haskell-cafe] How did you stumble on Haskell?

2007-01-29 Thread Bryan O'Sullivan
Bob Davison wrote: I thought calculus was about differentiation and integration and was very surprised to discover that there were such things as 'predicate calculus', 'propositional calculus', and various flavours of 'lambda calculus'. The stuff involving rates of change, integration, and

Re: [Haskell-cafe] Strings in Haskell

2007-01-23 Thread Bryan O'Sullivan
Tim Docker wrote: I'm not aware of any ongoing haskell work in finance, other that some private work being done by Alain Cremieux, reported in the HCAR. Lennart Augustsson works for Credit Suisse, using a Haskell DSEL to generate financial models for execution by clusters running Excel.

Re: [Haskell-cafe] Announce: Package rdtsc for reading IA-32 time stamp counters

2007-01-23 Thread Bryan O'Sullivan
John Meacham wrote: I would think this would be how the haskell 98 standard library CPUTime is implemented, is it not? No. System.CPUTime gives you an approximate idea of the amount of CPU time your process, and all its threads, have used. The rdtsc instruction gives you a snapshot of the

Re: [Haskell-cafe] hs-plugins on ghc6.6?

2007-01-18 Thread Bryan O'Sullivan
Adam Megacz wrote: Has anybody been able to get hs-plugins to work with ghc6.6? Don made some updates to it after 6.6 was released (see the darcs repo), but I can't build it due to what looks like a bug in the GHC install process (the wrong one of two incompatible versions of Typeable.h gets

Re: [Haskell-cafe] Re: [Haskell] Re: state of HaXml?

2007-01-10 Thread Bryan O'Sullivan
Taral wrote: For a read-only operation, this shouldn't matter, however on some platforms an open file handle can prevent deletion of the file. You'd be referring to Windows, then, where you can't rename or remove a file if someone has opened it. A partial defence against this is to pass

<    1   2   3   4   5