Re: [Haskell-cafe] Haskell shootout game

2007-07-17 Thread Björn Bringert
Hugh Perkins wrote: Had an idea: a real shootout game for Haskell. The way it would work is: - you email a haskell program to a specific address - it shows up on a web-page The webpage shows the last submitted solution for each person - anyone can select two solutions and click Fight - the

Re: [Haskell-cafe] ANN: MIME Strike Force

2007-03-19 Thread Björn Bringert
Jeremy Shaw wrote: Hello, If you have tried to do any MIME processing using Haskell, you are likely to have found two things: 1) There are a lot of MIME libraries for Haskell 2) None of them do everything you want So, I propose that we form a MIME Strike Force and create the one, true MIME

Re: [Haskell-cafe] Make strict (IO String) lazy

2007-03-15 Thread Björn Bringert
Henning Thielemann wrote: On the one hand, in the standard libraries there are functions like readFile, getContents, hGetContents which read a file lazily. This is often a nice feature, but sometimes lead to unexpected results, say when reading a file and overwriting it with modified contents.

Re: [Haskell-cafe] Read Instance for UArray won't port to linux

2007-03-14 Thread Björn Bringert
Simon Peyton-Jones wrote: | The error in linux is: | Illegal instance declaration for `Read (UArray Int Double)' | (The instance type must be of form (T a b c) | where T is not a synonym, and a,b,c are distinct type variables) | In the instance declaration for `Read

Re: [Haskell-cafe] Did quickchekc get dropped from ghc from 6.4 to 6.6?

2007-02-26 Thread Björn Bringert
Thomas Hartman wrote: According to http://www.cs.chalmers.se/~rjmh/QuickCheck/ Quickcheck is distributed with ghc. I seem to recall this came with ghc 6.4. After upgrading to ghc 6.6, however, I don't seem to have it anymore. Do I need to install it from cabal? If so, I assume this would

Re: [Haskell-cafe] Difference between Lazy ByteStrings and Strings in alex

2007-02-14 Thread Björn Bringert
On a related topic, I think Duncan Coutts and Lennart Kolmodin have worked on adding ByteString support to Alex. It seems to be available in the current darcs version of Alex. You many want to check with them for more details. /Björn Jefferson Heard wrote: It was suggested that I might

Re: [Haskell-cafe] Re: Network.CGI.Compat.pwrapper

2007-02-14 Thread Björn Bringert
Gracjan Polak wrote: Bjorn Bringert bringert at cs.chalmers.se writes: Is there a description what is a *CGI* protocol? Here you go: http://hoohoo.ncsa.uiuc.edu/cgi/interface.html I should be more clear: what kind of data does pwrapper expect? Somewhere in the middle it needs two handles:

Re: [Haskell-cafe] Calendar Dates before the epoch

2007-02-13 Thread Björn Bringert
jim burton wrote: It seems that CalendarTime is for dates since the epoch...what do I use to handle dates before that? Sorry if this is an FAQ, I looked on the wiki and tried to find MissingH since I thought it might be in there, but don't know where to find it. I also found this from 2003 -

Re: [Haskell-cafe] OT: any haskell-friendly / functional programming friendly comp sci programs? (for a 30s guy who did his undergrad in liberal arts)

2007-02-05 Thread Björn Bringert
Thomas Hartman wrote: haskellers, I'm contemplating returning to school after a decade as a worker bee, and almost that long as a worker bee doing computer consulting / miscelaneous tech stuff. Ideally I'd like to get a masters, but I don't know if that's feasible this late in the game. If it's

Re: [Haskell-cafe] Simple HTTP lib for Windows?

2007-01-19 Thread Björn Bringert
Greg Fitzgerald wrote: I'd like to write a very simple Haskell script that when given a URL, looks up the page, and returns a string of HTML. I don't see an HTTP library in the standard libs, and the one in Hackage requires Windows machines have GHC and MinGW to be installed and in the PATH.

Re: [Haskell-cafe] question about database interfaces

2007-01-09 Thread Björn Bringert
Eric Sessoms wrote: Hi All, I've found the list of database libraries at http://www.haskell.org/haskellwiki/Libraries_and_tools/Database_interfaces but I haven't found much guidance in choosing among them. , which is what most people are So I'm wondering -- in practice, what do people actually

Re: [Haskell-cafe] deepSeq vs rnf

2006-11-13 Thread Björn Bringert
Cale Gibbard wrote: On 22/10/06, Chad Scherrer [EMAIL PROTECTED] wrote: Hi, I had posted this question a while back, but I think it was in the middle of another discussion, and I never did get a reply. Do we really need both Control.Parallel.Strategies.rnf and deepSeq? Should we not always

Re: [Haskell-cafe] string to date?

2006-11-09 Thread Björn Bringert
Dougal Stanton wrote: Quoth Magnus Therning, nevermore, I've been staring my eyes out trying to find a function that converts a string into a ClockTime or CalendarTime. Basically something like C's strptime(3). I can't seem to find anything like it in System.Time, there are function that

Re: [Haskell-cafe] Substitute for records?

2006-04-10 Thread Björn Bringert
Mattias Bengtsson wrote: Currently i'm working, together with a friend, on an abstraction (sort of) of HaskellDB for a school-project. Basically we are generating haskell-modules similar to those generated by DBDirect in HaskellDB together with some helpers for the most common queries you'd want

Re: [Haskell-cafe] PPM image manipulation

2006-04-05 Thread Björn Bringert
Jared Updike wrote: ... P.S. After googling around for haskell image manipulation (in the hopes of finding some Haskell image lib like VIPS [1] or the Python Imaging Library [2]), I found the assignment spoken of http://cs.anu.edu.au/Student/comp1100/assts/asst1/ just so everyone knows. BTW,

Re: [Haskell-cafe] hs-plugins/ haskelldb/ ELF zlib incompatibility.

2006-03-20 Thread Björn Bringert
Marc Weber wrote: I get this error: calhost db=store uid=marc pwd= DB/Direct: Daan Leijen (c) 1999, HWT (c) 2003-2004, Bjorn Bringert (c) 2005 Connecting to database... DBDirect: user error (loadShared: couldn't load `/usr/lib/libz.so' because /usr/lib/libz.so: invalid ELF header Any idea how

Re: [Haskell-cafe] Web application frameworks

2006-03-07 Thread Björn Bringert
Graham Klyne wrote: [Switching to haskell-cafe] Niklas Broberg wrote: ... On 3/6/06, Graham Klyne [EMAIL PROTECTED] wrote: - Options to run the whole thing behind Apache to leverage its security and web space management capabilities Lemmih has implemented a HSP/FastCGI binding for

Re: [Haskell-cafe] Printing functions

2006-01-25 Thread Björn Bringert
Creighton Hogg wrote: Hi, I'm working on writing a genetic programming system in Haskell, and I wanted to know what might be a good way to print out the programs that are being generated. There's no instance of Show for functions, but I'd really like to see what's happening so that I know if

Re: [Haskell-cafe] Re: Can I use Haskell for web programming

2006-01-23 Thread Björn Bringert
I think the easiest way to achieve that would be to do as Thomas Davie suggested earlier and get a virtual server where you can install whatever you want. /Björn Maurício wrote: I think it would be interesting to ask some professional site to install hsp, before I go to the cgi solution.

Re: [Haskell-cafe] RE: [Haskell] Haskell DB bindings (was Re: ANN: HDBC (HaskellDatabase Connectivity)

2006-01-10 Thread Björn Bringert
Bayley, Alistair wrote: [Moving to café, too] There are three active database libraries: HDBC, HSQL and Takusen. It is quite disappointing from my point of view. Recently there was the same situation with the GUI libraires. The Haskell Community is quite small to waste efforts, developing

Re: [Haskell-cafe] Monads as control structures?

2005-10-27 Thread Björn Bringert
Creighton Hogg wrote: Hi, so I'm a newbie getting used to Haskell. I'm writing some simple things like genetic algorithms in it for practice, and I keep coming across something that really bugs me: are there any standard libraries that allow you to do imperative style for or while loops