Re: [Haskell-cafe] Trivial database access in Haskell

2006-12-11 Thread Taral
On 12/11/06, Paul Moore [EMAIL PROTECTED] wrote: F:\cabal-1.1.6.1runhaskell Setup.lhs install Installing: C:\Program Files\Haskell\Cabal-1.1.6.1\ghc-6.6 C:\Program Files\Haskell\bin Cabal-1.1.6.1... Setup.lhs: Error: Could not find module: Distribution.Compiler with any suffix: [hi] The magic

Re: [Haskell-cafe] Trivial database access in Haskell

2006-12-11 Thread Alec Berryman
Paul Moore on 2006-12-11 22:46:44 +: What I *can* do, is to attempt to install one of the libraries that looks closest to what I want (probably HDBC, because I'm familiar with the Python DB-API). But I honestly have little or no idea how to start - following the HDBC link on the Haskell

Re: [Haskell-cafe] Trivial database access in Haskell

2006-12-11 Thread Stefan O'Rear
On Mon, Dec 11, 2006 at 11:25:59PM +, Paul Moore wrote: On 12/11/06, Kirsten Chevalier [EMAIL PROTECTED] wrote: Don't apologize; you're not being dumb. But, you have to realize that if you're using Haskell at all, you *are* the Haskell community. OK, thanks for the gentle push. After a

Re: [Haskell-cafe] Writing Haskell For Dummies Or At Least For People Who Feel Like Dummies When They See The Word 'Monad'

2006-12-11 Thread Andy Georges
Hi, I wonder if a similar theme is apropriate for proposed book. Graphics and sounds give a very direct feedback to the programmer, and I expect that helps with the motivation. Perhaps a single largish application could be the end product of the book. Like a game or something. You'd start off

Re: [Haskell-cafe] Reversing a string of words: C# v Perl V Ruby v Haskell

2006-12-11 Thread Steve Downey
the typical good solution to this problem in c or c++ is to use a string reverse function on the entire buffer, then re-reverse each word. this leaves multiple spaces correctly embedded in the larger string. that approach, of course, won't work in haskell, since it relies on updates. but if the

Re: Re: [Haskell-cafe] Cannot understand liftM2

2006-12-11 Thread Nicola Paolucci
Hi Nicolas, On 12/11/06, Nicolas Frisby [EMAIL PROTECTED] wrote: The interpreter infers that m = (e -) because of the types of snd and fst. When snd and fst are considered as monadic computations in the (e -) monad, there types are: Prelude :t fst fst :: (a, b) - a Prelude :t snd snd :: (a,

Re: [Haskell-cafe] Reversing a string of words: C# v Perl V Ruby v Haskell

2006-12-11 Thread Brandon S. Allbery KF8NH
On Dec 11, 2006, at 18:48 , Steve Downey wrote: the typical good solution to this problem in c or c++ is to use a string reverse function on the entire buffer, then re-reverse each word. this leaves multiple spaces correctly embedded in the larger string. that approach, of course, won't work

[Haskell-cafe] Re: Why so slow?

2006-12-11 Thread Benjamin Franksen
Lyle Kopnicky wrote: The code below is using way more RAM than it should. It seems to only take so long when I build the 'programs' list - the actual reading/parsing is fast. For a 5MB input file, it's using 50MB of RAM! Any idea how to combat this? 1) I strongly recommend to work through at

[Haskell-cafe] Re: Aim Of Haskell

2006-12-11 Thread Benjamin Franksen
Joachim Durchholz wrote: These activities are among the major reasons why I'm finally prepared to get my feet wet with Haskell after years of interested watching. I'll probably fire off a set of newbie questions for my project, though it might still take a few days to get them organized well

Re: [Haskell-cafe] Reversing a string of words: C# v Perl V Ruby v Haskell

2006-12-11 Thread Greg Fitzgerald
Hi Steve, On 12/11/06, Steve Downey [EMAIL PROTECTED] wrote: transforming one two three four into four three two one, how could this be done? This is a good problem for Parsechttp://www.cs.uu.nl/%7Edaan/download/parsec/parsec.html : import Text.ParserCombinators.Parsec

a cabal/database lib experience (was: [Haskell-cafe] Trivial database access in Haskell)

2006-12-11 Thread Claus Reinke
if you're using Haskell at all, you *are* the Haskell community. [..lots of I searched, I found, I tried, I got this error, I thought, I tried this workaround, I got to this point, now I'm stuck here..] I just wanted to comment that I find this kind of experience report very helpful,

Re: [Haskell-cafe] Trivial database access in Haskell

2006-12-11 Thread jeff p
Hello, 1. Simple documentation of how to install the library (starting from a vanilla GHC installation on Windows, plus Oracle software, to the point where I can use the library in my code). All I need is Oracle access, so other database client libraries can be ignored. I'd rather not use ODBC,

[Haskell-cafe] Large data structures

2006-12-11 Thread Alex Queiroz
Hi all, I'm considering the use of Haskell to manipulate large data structures for Computer Graphics (large geometric datasets). I'm wondering what's the best way to do it. As objects (not in the OO sense) in Haskell are immutable, how can I add a vertex to a large mesh without using obscene

[Haskell-cafe] Re: Writing Haskell For Dummies Or At Least For People Who Feel Like Dummies When They See The Word 'Monad'

2006-12-11 Thread Benjamin Franksen
Sebastian Sylvan wrote: Perhaps a single largish application could be the end product of the book. Like a game or something. You'd start off with some examples early on, and then as quickly as possible start working on the low level utility functions for the game, moving on to more and more

Re: [Haskell-cafe] Large data structures

2006-12-11 Thread Stefan O'Rear
On Mon, Dec 11, 2006 at 10:27:44PM -0300, Alex Queiroz wrote: Hi all, I'm considering the use of Haskell to manipulate large data structures for Computer Graphics (large geometric datasets). I'm wondering what's the best way to do it. As objects (not in the OO sense) in Haskell are

Re: [Haskell-cafe] Large data structures

2006-12-11 Thread Alex Queiroz
Hallo, On 12/11/06, Stefan O'Rear [EMAIL PROTECTED] wrote: No. Haskell's lists are linked lists, enlarge creates a single new link without modifying (and copying) the original. ___ Thanks. Is there a way to mimic this behaviour with my own

Re: [Haskell-cafe] Large data structures

2006-12-11 Thread Matthew Brecknell
No. Haskell's lists are linked lists, enlarge creates a single new link without modifying (and copying) the original. Thanks. Is there a way to mimic this behaviour with my own code? Yes. Take a look at Data.Map. This data structure provides various operations which create a new map from

[Haskell-cafe] Re: Large data structures

2006-12-11 Thread Benjamin Franksen
Alex Queiroz wrote: On 12/11/06, Stefan O'Rear [EMAIL PROTECTED] wrote: No. Haskell's lists are linked lists, enlarge creates a single new link without modifying (and copying) the original. Thanks. Is there a way to mimic this behaviour with my own code? It is the default for any data

Re: [Haskell-cafe] Reversing a string of words: C# v Perl V Ruby v Haskell

2006-12-11 Thread Bernie Pope
On 12/12/2006, at 11:13 AM, Brandon S. Allbery KF8NH wrote: On Dec 11, 2006, at 18:48 , Steve Downey wrote: the typical good solution to this problem in c or c++ is to use a string reverse function on the entire buffer, then re-reverse each word. this leaves multiple spaces correctly

[Haskell-cafe] [newbie]any nice code for newbie to read?

2006-12-11 Thread 云杨
hello,all, I am new to haskell,and have read some tutorial, but I would like to read some real code from real haskell project, I believe this will help me study and use haskell quickly. would anyone please give me some suggestion about opensource project that a new haskell user should study?

[Haskell-cafe] Ninety Nine Haskell Problems

2006-12-11 Thread Andrew Wagner
Hello, fellow Haskellers! jcreigh, from #haskell, has found a great set of exercises to work through. Check out the new wiki pages indexed at http://haskell.org/haskellwiki/99_Haskell_exercises . These have all been done in lisp, but of COURSE they can be done at least as well in Haskell, if not

[Haskell-cafe] Haskell Weekly News: December 12, 2006

2006-12-11 Thread Donald Bruce Stewart
--- Haskell Weekly News http://sequence.complete.org/ Issue 53 - December 12, 2006 --- Welcome to issue 53 of HWN, a weekly newsletter covering

<    1   2