Re: [Haskell-cafe] Saving a data structure to a file

2006-04-28 Thread Bulat Ziganshin
Hello Neil, Friday, April 28, 2006, 7:59:22 PM, you wrote: > I have a program which needs to cache intermediate data structures to > a file (finite, non-cyclic, relatively simple, around ~100Kb when > shown). Is there any easy way to acheive this? use NewBinary (darcs get http://www.n-heptane.co

Re: [Haskell-cafe] Newbie "Instance Of Floating Int" Error

2006-04-28 Thread Evan Martin
On 4/28/06, Aditya Siram <[EMAIL PROTECTED]> wrote: > type Point = (Int,Int) > distBetween :: Point -> Point -> Float > >>ERROR - Type error in explicitly typed binding > *** Term : distBetween > *** Type : Point -> Point -> Int > *** Does not match : Point -> Point -> Float > >

[Haskell-cafe] Saving a data structure to a file

2006-04-28 Thread Neil Mitchell
Hi, I have a program which needs to cache intermediate data structures to a file (finite, non-cyclic, relatively simple, around ~100Kb when shown). Is there any easy way to acheive this? The current approach I am using is to add deriving Read, Show to all the data structures, and then writeFile

RE: [Haskell-cafe] database access recommendation

2006-04-28 Thread Brock Peabody
Hi Bulat, Thanks for all the information. I'm giving HDBC a try as it seems to be the most actively maintained and because I was able to install it. Regards, Brock ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/l

Re[2]: [Haskell-cafe] database access recommendation

2006-04-28 Thread Bulat Ziganshin
Hello Donald, Friday, April 28, 2006, 12:29:38 PM, you wrote: >> > I looked at http://www.haskell.org/haskellwiki/Libraries_and_tools, and >> >> suffice it to say that this page don't reflects current state of the >> art. during many years it was not updated and when it was moved to the >> wiki

Re: [Haskell-cafe] short yet featureful grep

2006-04-28 Thread John Meacham
On Fri, Apr 28, 2006 at 08:47:40AM +0100, David House wrote: > On 27/04/06, John Meacham <[EMAIL PROTECTED]> wrote: > >my favorite example is the featureful yet short grep, supporting quite a > >few non-trivial options as well as a detailed '--help' message. :) > > Does getOptions really take an a

Re: [Haskell-cafe] database access recommendation

2006-04-28 Thread Bulat Ziganshin
Hello Brock, Thursday, April 27, 2006, 7:45:16 PM, you wrote: > I'm teaching myself Haskell, and was wondering if anyone could recommend > a library for accessing databases, PostgreSQL in particular. as Ketil Malde wrote to me in private mail, there is at least one more lib (aside from HDBC/HSQL

Re[2]: [Haskell-cafe] GetOpt

2006-04-28 Thread Bulat Ziganshin
Hello Anton, Friday, April 28, 2006, 12:54:44 AM, you wrote: > I really trying to avoid imperative approach. I do have a terribly big > experience in imperative programming (by the way, you might know one > application that I made about 3 years ago. It is Uni-K Sensei for no. but may be you are

Re: [Haskell-cafe] database access recommendation

2006-04-28 Thread Donald Bruce Stewart
bulat.ziganshin: > Hello Brock, > > Thursday, April 27, 2006, 7:45:16 PM, you wrote: > > I looked at http://www.haskell.org/haskellwiki/Libraries_and_tools, and > > suffice it to say that this page don't reflects current state of the > art. during many years it was not updated and when it was mov

Re: [Haskell-cafe] short yet featureful grep

2006-04-28 Thread David House
On 27/04/06, John Meacham <[EMAIL PROTECTED]> wrote: my favorite example is the featureful yet short grep, supporting quite a few non-trivial options as well as a detailed '--help' message. :) Does getOptions really take an arbitrary n-tuple? Why? That seems a very odd way of doing things. The

Re: [Haskell-cafe] database access recommendation

2006-04-28 Thread Bulat Ziganshin
Hello Brock, Thursday, April 27, 2006, 7:45:16 PM, you wrote: > I looked at http://www.haskell.org/haskellwiki/Libraries_and_tools, and suffice it to say that this page don't reflects current state of the art. during many years it was not updated and when it was moved to the wiki half-year ago it