Re: [Haskell-cafe] Haskell, successing crossplatform API standart

2008-12-01 Thread Bjorn Bringert
On Sun, Nov 30, 2008 at 17:51, Sterling Clover [EMAIL PROTECTED] wrote: Haxr provides a basic implementation of the XML-RPC protocol, and while it looks like it doesn' t build on 6.10 at the moment, getting it to build shouldn't be a problem, and although it doesn't appear to be under active

Re: [Haskell-cafe] Network.FastCGI does not emit stderr outputs to lighttpd's error.log?

2008-11-04 Thread Bjorn Bringert
On Thu, Jul 31, 2008 at 6:37 PM, Don Stewart [EMAIL PROTECTED] wrote: agentzh: On Thu, Jul 31, 2008 at 1:56 AM, Don Stewart [EMAIL PROTECTED] wrote: We've had no problems with this and apache at least. Is lighttpd doing something funny with error logging? It seems that Apache is doing

Re: [Haskell-cafe] [fun] HaskellDB Talk trailer

2008-10-17 Thread Bjorn Bringert
On Fri, Oct 17, 2008 at 1:54 AM, Don Stewart [EMAIL PROTECTED] wrote: kyagrd: There is an impressive HaskellDB Talk trailer on the web. http://www.vimeo.com/1983774 Cheers to the HaskellDB developers :-) AWESOME! Trailers for talks, eh? The bar has been raised. -- Don Sweet! There

Re: [Haskell-cafe] Hackage - MacPorts?

2008-09-09 Thread Bjorn Bringert
On Wed, Sep 3, 2008 at 10:14 PM, John MacFarlane [EMAIL PROTECTED] wrote: It would be great if there were an automated or semi-automated way of generating a MacPorts Portfile from a HackageDB package, along the lines of dons' cabal2arch. Has anyone been working on such a thing? And, are any

Re: [Haskell-cafe] String to Double conversion in Haskell

2008-08-26 Thread Bjorn Bringert
2008/8/24 Daryoush Mehrtash [EMAIL PROTECTED]: I am trying to convert a string to a float. It seems that Data.ByteString library only supports readInt.After some googling I came accross a possibloe implementation: http://sequence.svcs.cs.pdx.edu/node/373 My questions are: a) is there a

Re: [Haskell-cafe] Building fastcgi from hackage on windows.

2008-08-08 Thread Bjorn Bringert
Hi Edward, I have never compiled the fastcgi package on Windows myself, but my best tip would be to try to install the FastCGI development kit (= C headers and libraries), see http://www.fastcgi.com/#TheDevKit /Bjorn On Fri, Aug 8, 2008 at 4:53 PM, Edward Ing [EMAIL PROTECTED] wrote: I have

Re: [Haskell-cafe] Haskell PNG Writer

2008-05-05 Thread Bjorn Bringert
The libgd bindings can be used to create PNG images. See http://hackage.haskell.org/cgi-bin/hackage-scripts/package/gd /Björn On Mon, May 5, 2008 at 9:05 AM, Bit Connor [EMAIL PROTECTED] wrote: It would be nice to have haskell bindings to the libpng C library. I had trouble calling libpng

Re: ANN: ghc 6.8.2 from MacPorts

2008-04-24 Thread Bjorn Bringert
On Thu, Mar 6, 2008 at 7:57 PM, Wouter Swierstra [EMAIL PROTECTED] wrote: Hi Greg, Thanks again for maintaining ghc in macports! I tried installing ghc through macports. Unfortunately, the build failed with the following error message below. I'd be happy to send you a complete log, if you

Re: ANN: ghc 6.8.2 from MacPorts

2008-04-24 Thread Bjorn Bringert
On Thu, Apr 24, 2008 at 3:25 PM, Gregory Wright [EMAIL PROTECTED] wrote: On Apr 24, 2008, at 6:41 AM, Bjorn Bringert wrote: On Thu, Mar 6, 2008 at 7:57 PM, Wouter Swierstra [EMAIL PROTECTED] wrote: Hi Greg, Thanks again for maintaining ghc in macports! I tried installing ghc

Re: [Haskell-cafe] Seeking Daan Leijen

2008-03-31 Thread Bjorn Bringert
On Thu, Mar 27, 2008 at 6:43 PM, John Goerzen [EMAIL PROTECTED] wrote: I tried to email this to Daan, but his mail is bouncing... Subject: http://legacy.cs.uu.nl/daan/parsec.html Hi Daan, I noticed Parsec 3.0.0 on Hackage, and went to your homepage to read about the new package. But

Re: [Haskell-cafe] HDBC, character encoding

2008-03-31 Thread Bjorn Bringert
2008/3/26 Adrian Neumann [EMAIL PROTECTED]: Hi, I wrote a CGI program to access a Postgres database using HDBC. The database stores books and I want to display those from a certain author. Everything works fine, unless I search for someone with an umlaut in his name. Böll, for example. I

Re: [Haskell-cafe] How to program with sqlite?

2008-03-25 Thread Bjorn Bringert
2008/3/22 Sebastian Sylvan [EMAIL PROTECTED]: On Sat, Mar 22, 2008 at 1:40 PM, Deng Chao [EMAIL PROTECTED] wrote: Hi all, I'm learning sqlite, and as I know haskell has some libraries like HDBC or HSQL can access sqlite DB. Can anybody give me a small example to show how to use it? It

Re: [Haskell-cafe] How to program with sqlite?

2008-03-25 Thread Bjorn Bringert
On Tue, Mar 25, 2008 at 3:29 PM, Alex Sandro Queiroz e Silva [EMAIL PROTECTED] wrote: Hallo, Bjorn Bringert wrote: This is SQLite's fault. In SQLite, all types are aliases for STRING. Whatever type you use in the create and insert, you will get strings back. That's

Re: [Haskell-cafe] Using HaskellDb to connect to PostgresSql

2008-03-22 Thread Bjorn Bringert
On Wed, Mar 19, 2008 at 8:32 PM, Justin Bailey [EMAIL PROTECTED] wrote: On Wed, Mar 19, 2008 at 10:55 AM, Marc Mertens [EMAIL PROTECTED] wrote: Hello, I'm trying to learn to use HaskellDb. I have managed to finally compile and install it on my linux box (I have ghc 6.8.2). But

Re: [Haskell-cafe] File I/O question

2008-03-13 Thread Bjorn Bringert
On Wed, Mar 12, 2008 at 10:03 PM, Andrew Coppin [EMAIL PROTECTED] wrote: Don Stewart wrote: Hey Andrew, What are you trying to do? Read and write to the same file (if so, you need to use strict IO), or are you trying something sneakier? I have a long-running Haskell program that

[Haskell] Reminder: 4th Haskell Hackathon, April 11-13 in Gothenburg

2008-03-12 Thread Bjorn Bringert
Hac4 4th Haskell Hackathon April 11-13, 2008 Gothenburg, Sweden http://haskell.org/haskellwiki/Hac4 Sponsored by Credit Suisse and Galois. This is a

[Haskell-cafe] Reminder: 4th Haskell Hackathon, April 11-13 in Gothenburg

2008-03-12 Thread Bjorn Bringert
Hac4 4th Haskell Hackathon April 11-13, 2008 Gothenburg, Sweden http://haskell.org/haskellwiki/Hac4 Sponsored by Credit Suisse and Galois. This is a

Re: [Haskell-cafe] Starting Haskell with a web application

2008-03-06 Thread Bjorn Bringert
On Wed, Mar 5, 2008 at 8:00 PM, Don Stewart [EMAIL PROTECTED] wrote: bos: Jonathan Gardner wrote: Where do I get started in writing a web app with Haskell? I am looking more for a framework like Pylons and less like Apache, if that helps. The closest we currently have to a web

Re: [Haskell-cafe] Connection helpers: for people interested in network code

2008-03-05 Thread Bjorn Bringert
On Tue, Mar 4, 2008 at 5:15 PM, Adam Langley [EMAIL PROTECTED] wrote: On Tue, Mar 4, 2008 at 7:31 AM, Bjorn Bringert [EMAIL PROTECTED] wrote: you may want to have a look at the socket abstraction used in the HTTP package: http://hackage.haskell.org/packages/archive/HTTP/3001.0.4

Re: [Haskell-cafe] Connection helpers: for people interested in network code

2008-03-04 Thread Bjorn Bringert
On Fri, Feb 29, 2008 at 8:50 PM, Adam Langley [EMAIL PROTECTED] wrote: I generally find that I'm wrapping sockets in the same functions a lot and now I'm looking writings code which works with both Sockets and SSL connections. So I wrote a module, presumptuously called Network.Connection,

Re: statically linking

2008-02-17 Thread Bjorn Bringert
On Feb 17, 2008 3:32 PM, Martina Seidl [EMAIL PROTECTED] wrote: Hallo, I urgently need a statically linked binary (ELF 32) of a Haskell program I have written and I could not figure out yet how to achieve this. Could anyone give me a hint please? Best regards, Martina Hi Martina, Adding

Re: [Haskell-cafe] Working with multiple time zones

2008-02-17 Thread Bjorn Bringert
On Feb 17, 2008 12:13 AM, Dave Hinton [EMAIL PROTECTED] wrote: (This is a toy program to demonstrate only the part of my real program that I'm having trouble with.) Suppose I'm writing a program to print the current time in various time zones. The time zones are to be given symbolically on

Re: [Haskell-cafe] Issues with hsql-sqllite build; errors from the hackage download

2008-02-02 Thread Bjorn Bringert
Yes. It would be nice to have an updated HSQL release first though. /Björn On Feb 2, 2008 6:07 PM, Sterling Clover [EMAIL PROTECTED] wrote: Just noticed, by the way, that haskelldb doesn't build correctly because it still hasn't updated the cabal for the base split. On the other hand, the

Re: Network.CGI changes

2008-01-24 Thread Bjorn Bringert
Hi Frederik, I agree with your comments about the headaches of Haskell library stability. I made the change because it seemed like the old library had no users. I should put my money where my mouth is, Network.CGI.Compat is now back in the cgi package. /Bjorn On Jan 22, 2008, at 18:28 ,

[Haskell] What dates are best for a hackathon in Gothenburg?

2008-01-08 Thread Bjorn Bringert
We are planning to hold the 4th Haskell Hackathon in Gothenburg in April. If you would be at all interested in coming, please indicate which of the three candidate dates Apr 4-6, Apr 11-13, or Apr 18-20 suit you by editing: http://www.haskell.org/haskellwiki/Hac_2008/Dates If you haven't

Re: [Haskell-cafe] Browser action and new http library

2007-11-27 Thread Bjorn Bringert
On Nov 27, 2007, at 0:54 , bbrown wrote: I am trying to use the HTTP library 3001 for ghc 6.8 and cant figure out how to use a proxy to do a GET request as I am behind a proxy server. My thinking is that I could use the setProxy method it looks like it returns a BrowserAction? What do I

Re: [Haskell-cafe] expanded standard lib

2007-11-19 Thread Bjorn Bringert
On Nov 19, 2007, at 23:13 , Henning Thielemann wrote: On Mon, 19 Nov 2007, Brandon S. Allbery KF8NH wrote: On Nov 19, 2007, at 15:47 , Radosław Grzanka wrote: If you look at the stability tag of ghc libraries you will see that a lot of them are marked as provisional (Network.URI for

Re: [Haskell-cafe] Network.HTTP problem

2007-11-18 Thread Bjorn Bringert
On Nov 18, 2007, at 22:08 , Radosław Grzanka wrote: Hello again Bjorn, This is now fixed and a new release with the fix is available from http://hackage.haskell.org/cgi-bin/hackage-scripts/package/ HTTP-3001.0.1 You have left debug flag on in the library code. Thanks, Radek. Dammit. I

Re: [Haskell-cafe] Network.HTTP problem

2007-11-17 Thread Bjorn Bringert
On Nov 17, 2007, at 17:07 , Radosław Grzanka wrote: Hello, I have a problem with Network.HTTP module (http://www.haskell.org/http/) version 3001.0.0 . I have already mailed Bjorn Bringert about it but I didn't get answer yet so maybe someone here can help me. GHC v. 6.6.1 Ubuntu 7.10 x86_64

Re: GHC 6.8.1 Build Failure on Mac OS X Intel 10.4.10

2007-11-09 Thread Bjorn Bringert
I have this in my ~/.profile so that I don't have to keep giving flags to configure for every single thing I build against MacPorts libraries: export CPATH=/opt/local/include export LIBRARY_PATH=/opt/local/lib export LD_LIBRARY_PATH=/opt/local/lib /Björn On Nov 9, 2007, at 6:13 , Paul

Re: GHC 6.8.1 is impressive!

2007-11-09 Thread Bjorn Bringert
I'd like to third that. The main improvement for GF is that the build is 5 times faster, 3 minutes with 6.8.1 instead of 15 minutes with 6.6.1, using -O2 with both. The compiled program runs 13% faster with 6.8.1. Code: http://www.cs.chalmers.se/Cs/Research/Language-technology/darcs/ GF/

Re: [Haskell-cafe] Standalone PNG module?

2007-11-08 Thread Bjorn Bringert
On Nov 8, 2007, at 5:42 , Cale Gibbard wrote: On 06/11/2007, Peter Verswyvelen [EMAIL PROTECTED] wrote: I would like to load 32-bit images (RGB+alpha) for use with GLUT/ OpenGL. I know GTK2HS has support for loading images, but does a standalone Haskell (wrapper) module exists for

Re: [Haskell] Image manipulation

2007-10-31 Thread Bjorn Bringert
On Oct 29, 2007, at 21:40 , Don Stewart wrote: listuser07: Hi! I have lots and lots of images (jpegs) that I would like to manipulate and shrink (in size). They are around 5 Mb big, so I thought this would be a good Haskell project since it's a lazy evaluating language. The

Re: [Haskell-cafe] System.Posix

2007-10-16 Thread Bjorn Bringert
On Oct 16, 2007, at 3:25 , Galchin Vasili wrote: Hello, In a Hugs environment, I am able to import System.Directory but not to import System.Posix. Here is my environment ... .;{Hugs} \packages\*;C:\ftp\CatTheory\Haskell\SOE\graphics\lib\win32\*. I really want to use the Posix module.

Re: [Haskell-cafe] Help parsing dates and times

2007-10-16 Thread Bjorn Bringert
On Oct 16, 2007, at 2:25 , Don Stewart wrote: jgbailey: I am trying to parse various date and time formats using the parseTime function found in (GHC 6.6.1) Data.Time.Format. The one that is giving me trouble looks like this: 2008-06-26T11:00:00.000-07:00 Specifically,

Re: [Haskell-cafe] Help parsing dates and times

2007-10-16 Thread Bjorn Bringert
On Oct 16, 2007, at 17:54 , Justin Bailey wrote: On 10/16/07, Bjorn Bringert [EMAIL PROTECTED] wrote: Hmm, perhaps I should clarify this: parsedate and time-1.1.1 (which comes with GHC 6.6.1) have different APIs. parsedate produces CalendarTimes, and the code in time-1.1.1 produces the new

Re: [Haskell-cafe] System.Posix

2007-10-16 Thread Bjorn Bringert
would it entail to get System.Posix working on Windows? Would a mininum requirement e.g. be teh installation of http:// www.cygwin.com? Or write a POSIX API to Win32 API binding? If I understand the problem, I wouldn't mind giving a run at it! Regards, Bill On 10/16/07, Bjorn Bringert

Re: [Haskell-cafe] Help parsing dates and times

2007-10-16 Thread Bjorn Bringert
On Oct 16, 2007, at 21:39 , Carl Witty wrote: On Tue, 2007-10-16 at 09:25 -0700, Justin Bailey wrote: On 10/16/07, Bjorn Bringert [EMAIL PROTECTED] wrote: Should we just add XX:XX as an alternative time zone offset format accepted by %z and %Z? Is this a standard

Re: [Haskell] Re: Trying to install binary-0.4

2007-10-13 Thread Bjorn Bringert
On Oct 13, 2007, at 20:35 , Udo Stenzel wrote: Simon Marlow wrote: - Refrain from renaming stuff. System.Posix is a fine name. Who renamed it? It's still called System.Posix AFAIK. tar references System.PosixCompat, which apparently comes from a library called unix-compat. I have no

Re: [Haskell-cafe] Style

2007-08-24 Thread Bjorn Bringert
On Aug 24, 2007, at 9:18 , Arie Groeneveld wrote: Hi, I defined several functions for calculating the number of trailing zero's of n! tm = sum . takeWhile(0) . iterate f . f where f = flip div 5 tm1 n = sum . takeWhile(0) . map (div n . (5^)) $ [1..] tm2 n = sum . takeWhile(0) . map

Re: [Haskell-cafe] Help using CGIT

2007-08-24 Thread Bjorn Bringert
On Aug 23, 2007, at 3:34 , Rich Neswold wrote: On 8/22/07, Ian Lynagh [EMAIL PROTECTED] wrote: On Wed, Aug 22, 2007 at 01:27:00PM -0500, Rich Neswold wrote: newtype App a = App (ReaderT Connection (CGIT IO) a) deriving (Monad, MonadIO, MonadReader Connection) Unfortunately, when

Re: [Haskell-cafe] Is this haskelly enough?

2007-07-18 Thread Bjorn Bringert
On Jul 18, 2007, at 2:13 , ok wrote: On Jul 17, 2007, at 22:26 , James Hunt wrote: As a struggling newbie, I've started to try various exercises in order to improve. I decided to try the latest Ruby Quiz (http:// www.rubyquiz.com/quiz131.html) in Haskell. Haskell guru level: I am

Re: [Haskell-cafe] Is this haskelly enough?

2007-07-17 Thread Bjorn Bringert
On Jul 17, 2007, at 22:26 , James Hunt wrote: Hi, As a struggling newbie, I've started to try various exercises in order to improve. I decided to try the latest Ruby Quiz (http:// www.rubyquiz.com/quiz131.html) in Haskell. Would someone be kind enough to cast their eye over my code? I get

Re: [Haskell-cafe] RE: haskell for web

2007-07-17 Thread Bjorn Bringert
On Jul 18, 2007, at 0:27 , brad clawsie wrote: On Wed, Jul 18, 2007 at 12:17:12AM +0200, Hugh Perkins wrote: On 7/17/07, Martin Coxall [EMAIL PROTECTED] wrote: I wonder why 'we' aren't pushing things like this big time. When Ruby took off, more than anything else it was because of Rails.

Re: [Haskell-cafe] Is this haskelly enough?

2007-07-17 Thread Bjorn Bringert
On Jul 18, 2007, at 1:00 , Dan Weston wrote: Bjorn Bringert wrote: import Data.List maxsubarrays xs = maximumBy (compare `on` sum) [zs | ys - inits xs, zs - tails ys] I love this solution: simple, understandable, elegant. As a nit, I might take out the ys and zs names, which obscure

Re: [Haskell-cafe] HDBC-ODBC build/install problem.

2007-07-14 Thread Bjorn Bringert
-plugins? Your help would be appreciated. Edward Ing On 7/13/07, Bjorn Bringert [EMAIL PROTECTED] wrote: On Jul 12, 2007, at 23:35 , Edward Ing wrote: Hi Edward, the right approach would be to add it to other-modules in HDBC- odbc.cabal file, where it should have been all along

Re: [Haskell-cafe] CGI test

2007-07-13 Thread Bjorn Bringert
On Jul 12, 2007, at 19:59 , Andrew Coppin wrote: Hugh Perkins wrote: ... Thanks for trying - but that doesn't actually work. (For starters, you need to prepend the HTTP status code to the data from the CGI script...) Actually, as it turns out, the script I want to test needs to

Re: [Haskell-cafe] HDBC-ODBC build/install problem.

2007-07-13 Thread Bjorn Bringert
On Jul 12, 2007, at 23:35 , Edward Ing wrote: Hi, I am trying to make HaskellDB work with HDBC-ODBC. I did builds of HDBC/HDBC-ODBC. But when I am building HaskellDB-HDBC-ODBC, I get the following message. -- [1 of 1] Compiling Database.HaskellDB.HDBC.ODBC (

Re: [Haskell-cafe] Re: The danger of Monad ((-) r)

2007-05-15 Thread Bjorn Bringert
On May 15, 2007, at 14:52 , Tomasz Zielonka wrote: On Tue, May 15, 2007 at 02:27:13PM +0200, Arie Peterson wrote: Hi Tomek! Hi! Have you considered changing the statements to have type 'ReaderT Database IO ()'? Then () actually does what you want. I tried it and it made the code

Re: [Haskell-cafe] Co-arbitrary

2007-05-08 Thread Bjorn Bringert
On May 8, 2007, at 9:33 , Joel Reymont wrote: Would someone kindly explain why we need co-arbitrary in QuickCheck and how to define it? Detailed examples would be awesome! I would be willing to paste an in-depth explanation on my wall and keep it forever. Thanks in advance, Joel

Re: [Haskell-cafe] How to parse a date and time?

2007-05-08 Thread Bjorn Bringert
On May 8, 2007, at 1:04 , Justin Bailey wrote: Looking at the libraries documentation, it seems like parsing a string into a time and date should be as simple as: import Data.Time.Format (parseTime) myDate = parseTime ... where ... is some string. But these functions don't seem to

Re: ANNOUNCE: GHC 6.6.1 Release Candidate

2007-04-12 Thread Bjorn Bringert
On Apr 11, 2007, at 19:39 , Thorkil Naur wrote: Hello, On Tuesday 10 April 2007 16:41, Ian Lynagh wrote: We are pleased to announce the Release Candidate phase for GHC 6.6.1. ... A few comments to the source bundles http://www.haskell.org/ghc/dist/stable/dist/ghc-6.6.20070410-

Re: [Haskell-cafe] Typing non-Haskell in Haskell

2007-04-12 Thread Bjorn Bringert
On Apr 12, 2007, at 14:37 , Joel Reymont wrote: I feel I should set aside a Friday of every week just to read the Haskell papers :-). After skimming through Typing Haskell in Haskell I have a couple of questions... Are type constructors (TyCon) applicable to Haskell only? Mine is a

Re: [Haskell-cafe] ANN: XMPP 0.0.1

2007-04-08 Thread Bjorn Bringert
On Apr 8, 2007, at 2:03 , Magnus Henoch wrote: I'm hacking a library for writing XMPP clients, and just decided that my work is good enough to call it version 0.0.1. Find source and documentation here: http://www.dtek.chalmers.se/~henoch/text/hsxmpp.html It contains a werewolf bot as an

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

2007-03-20 Thread Bjorn Bringert
On Mar 18, 2007, at 21:36 , 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

Re: [Haskell-cafe] Parallelism on concurrent?

2007-03-14 Thread Bjorn Bringert
On Mar 13, 2007, at 17:26 , Dusan Kolar wrote: Hello all, I'm googling around haskell.org to get some deeper knowledge about Control.Parallel.Strategies than it is presented on http:// www.haskell.org/ghc/docs/latest/html/libraries/base/Control- Parallel-Strategies.html BTW, could someone

Re: [Haskell] Re: [Haskell-cafe] Google summer of code

2007-03-08 Thread Bjorn Bringert
On Mar 8, 2007, at 10:40 , Simon Marlow wrote: David House wrote: On 06/03/07, Malcolm Wallace [EMAIL PROTECTED] wrote: Well, our wiki to gather ideas is now up-and-running again: http://hackage.haskell.org/trac/summer-of-code We should probably remove projects that were succeessfully

Re: [Haskell-cafe] Re: functional database queries

2007-02-22 Thread Bjorn Bringert
On Feb 22, 2007, at 14:56 , Henning Thielemann wrote: On Wed, 21 Feb 2007 [EMAIL PROTECTED] wrote: Albert Y. C. Lai wrote: [EMAIL PROTECTED] wrote: Albert Y. C. Lai wrote: If and only if the database is a purely functional immutable data structure, this can be done. [...] Many

Re: [Haskell-cafe] Re: functional database queries

2007-02-21 Thread Bjorn Bringert
On Feb 21, 2007, at 20:47 , [EMAIL PROTECTED] wrote: Albert Y. C. Lai wrote: [EMAIL PROTECTED] wrote: Albert Y. C. Lai wrote: If and only if the database is a purely functional immutable data structure, this can be done. [...] Many interesting databases are not purely functional immutable;

Re: [Haskell-cafe] Looking for documentation on Control.Parallel.Strategies

2007-02-16 Thread Bjorn Bringert
On Feb 16, 2007, at 21:16 , Jefferson Heard wrote: Is there anything that documents this further than the Haddock documentation available from Haskell.org or the GHC pages? I've gotten some basic parallelism to work using parMap and using || and |, but I had a fold and a map that I could

Re: [Haskell-cafe] Where can I find XmlRpc package?

2007-02-14 Thread Bjorn Bringert
On Feb 14, 2007, at 22:50 , keepbal wrote: http://www.cs.chalmers.se/~bringert/darcs/blob/Makefile BlobXmlRpc: GHCFLAGS += -package XmlRpc I can't find XmlRpc,so I use haxr instead,but it doesn't work. haxr is the new name for the XmlRpc package, so changing -package XmlRpc to -package

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

2007-02-13 Thread Bjorn Bringert
On Feb 13, 2007, at 9:14 , Gracjan Polak wrote: Bjorn Bringert bringert at cs.chalmers.se writes: Another question is: how do I do equivalent functionality without pwrapper? You can roll you own web server if you want something very simple. If you don't want to do that, there is a version

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

2007-02-13 Thread Bjorn Bringert
On Feb 12, 2007, at 23:27 , Albert Y. C. Lai wrote: Bjorn Bringert wrote: pwrapper is not an HTTP server, though the Haddock comment can make you think so. pwrapper allows you to talk *CGI* over a TCP port, but I have no idea why anyone would like to do that. Here is a scenerio. I want

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

2007-02-12 Thread Bjorn Bringert
On Feb 12, 2007, at 14:22 , Gracjan Polak wrote: I wanted to setup really simple http server, found Network.CGI.Compat.pwrapper and decided it suits my needs. Code: module Main where import Network.CGI import Text.XHtml import Network doit vars = do return (body (toHtml (show vars)))

Re: [Haskell-cafe] What's wrong with cgi-undecidable?

2007-02-11 Thread Bjorn Bringert
On Feb 11, 2007, at 0:12 , Robin Green wrote: On Sat, 10 Feb 2007 23:37:04 +0100 Bjorn Bringert [EMAIL PROTECTED] wrote: I've also recently changed the version number scheme on most of the packages I maintain (which includes most of the packages required by Hope) from a date-based one

Re: [Haskell-cafe] What's wrong with cgi-undecidable?

2007-02-10 Thread Bjorn Bringert
On Feb 10, 2007, at 9:15 , Donald Bruce Stewart wrote: haskell: [EMAIL PROTECTED] said: Then another problem,after I unregistered cgi-2006.9.6,the fastcgi-2006.10.9could't work well with cgi-1.0 . You might need fastcgi-1.0: http://www.cs.chalmers.se/~bringert/darcs/haskell-fastcgi

Re: [Haskell-cafe] Alternate instance Show (Maybe a)?

2007-02-03 Thread Bjorn Bringert
On Feb 2, 2007, at 21:10 , Sergey Zaharchenko wrote: Hello list, Suppose I want show Nothing to return , and show (Just foo) return show foo. I don't seem to be able to. Looks like I either have to use some other function name, like `mShow', or have to import Prelude hiding Maybe,

Re: [Haskell-cafe] ANNOUNCE: binary: high performance, pure binary serialisation

2007-01-29 Thread Bjorn Bringert
On Jan 29, 2007, at 16:38 , Ross Paterson wrote: On Fri, Jan 26, 2007 at 01:51:01PM +1100, Donald Bruce Stewart wrote: Binary: high performance, pure binary serialisation for Haskell - - The Binary Strike

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

2007-01-29 Thread Bjorn Bringert
On Jan 29, 2007, at 11:11 , Yitzchak Gale wrote: Neil Mitchell wrote: I will be releasing this function as part of a library shortly Alistair Bayley wrote: no! The code was merely meant to illustrate how a really basic HTTP GET might work. It certainly doesn't deal with a lot of the

Re: [Haskell-cafe] Generating Source Code with Haskell

2007-01-02 Thread Bjorn Bringert
On Jan 2, 2007, at 0:08 , Martin Huschenbett wrote: Hi, my aim is to transform an XML file into C++ source code with a Haskell program. The part that parses the XML is already finished (using HaXML) but the part that generates the C++ code is still remaining. Is there already any work on

Re: [Haskell-cafe] maybeToM

2006-12-19 Thread Bjorn Bringert
On 18 dec 2006, at 18.22, Stefan O'Rear wrote: I can't see how such a generalization could look like, especially since maybe can be used with arbitrary monad: maybe (fail Nothing) return Well, that???s a possible implementation of a maybeToM. The question is: Is it useful enough for

Re: [Haskell-cafe] Aim Of Haskell

2006-12-17 Thread Bjorn Bringert
On 15 dec 2006, at 14.14, Neil Bartlett wrote: ... The Haskell web server that Simon Peyton-Jones et al described in their paper would be a great example. But where's the download? How do I get a copy to play with? In the real world, things don't stop with the publication of a paper ;-)

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

2006-12-12 Thread Bjorn Bringert
Anders Höckersten [EMAIL PROTECTED] and Bjorn Bringert [EMAIL PROTECTED] HSQLKrasimir Angelov [EMAIL PROTECTED] Takusen Bayley, Alistair [EMAIL PROTECTED] (did I miss any?) They probably haven't been online since your msg, but I'm sure they'll be keen to help you use

Re: [Haskell] Help needed interrupting accepting a network connection

2006-12-04 Thread Bjorn Bringert
On 2 dec 2006, at 22.13, Cat Dancer wrote: I'd like to write a server accepting incoming network connections that can be gracefully shutdown. When the server is asked to shutdown, it should stop accepting new connections, finish processing any current connections, and then terminate. Clients

Re: [Haskell] ANNOUNCE: QuickCheck 2 development version

2006-11-24 Thread Bjorn Bringert
On 24 nov 2006, at 22.04, Audrey Tang wrote: 在 Nov 24, 2006 9:29 PM 時,Björn Bringert 寫到: This is just a quick announcement that the development version of QuickCheck 2 is now available in a public darcs repository. Some highlights: - Shrinks failing test cases. - Supports testing monadic

Re: [Haskell-cafe] Generalizing zip

2006-11-16 Thread Bjorn Bringert
On 16 nov 2006, at 11.46, Jason Dagit wrote: In #haskell on freenode we had a discussion about isPrefixOf, which is probably implemented roughly as so: isPrefixOf [] _ = True isPrefixOf _ [] = False isPrefixOf (x:xs) (y:ys) = x == y isPrefixOf xs ys Well, this is basically just a zip with a

Re: [Haskell-cafe] string to date?

2006-11-09 Thread Bjorn Bringert
from Bjorn Bringert [2]. I haven't used either though, so I can't recommend anything between them. Cheers, D. [1]: http://quux.org:70/devel/missingh/html/MissingH-Time- ParseDate.html [2]: http://www.cs.chalmers.se/~bringert/darcs/parsedate/ Those two are the same code. I have a preliminary new

Re: Proposal for stand-alone deriving declarations?

2006-10-08 Thread Bjorn Bringert
On 7 okt 2006, at 16.44, Twan van Laarhoven wrote: The main use for this seems to be when a module defining a data type lacks an instance you want, and for some reason you can't get the original module changed. If you continue this line of reasoning: 1. The only reason a module can not be

Re: Proposal for stand-alone deriving declarations?

2006-10-08 Thread Bjorn Bringert
On 8 okt 2006, at 18.22, Brian Smith wrote: On 10/6/06, Björn Bringert [EMAIL PROTECTED] wrote: John Hughes wrote: deriving (Eq Foo, Ord Foo) instead of deriving (Eq, Ord) for Foo I find the former syntax clearer and more readable, actually. John I'll implement this syntax instead

Re: Proposal for stand-alone deriving declarations?

2006-10-08 Thread Bjorn Bringert
On 8 okt 2006, at 20.11, Brian Smith wrote: On 10/8/06, Bjorn Bringert [EMAIL PROTECTED] wrote: I agree that derive would be nicer, but as you say, the problem is that it would add a new keyword. Since the declaration would then start with derive, I don't that think it could easily be made

Proposal for stand-alone deriving declarations?

2006-10-05 Thread Bjorn Bringert
On http://hackage.haskell.org/trac/haskell-prime/wiki/ DerivedInstances it says: - There is no way to derive an instance of a class for a data type that is defined elsewhere (in another module). Though there is no proposal to fix this. Would such a proposal be appropriate for Haskell'?

Re: Proposal for stand-alone deriving declarations?

2006-10-05 Thread Bjorn Bringert
. /Björn On 5 okt 2006, at 10.36, Simon Peyton-Jones wrote: Thanks for doing this. Is this the syntax we settled on? I remember we discussed it at some length S | -Original Message- | From: [EMAIL PROTECTED] [mailto:haskell-prime- [EMAIL PROTECTED] On Behalf Of | Bjorn Bringert

Re: Proposal for stand-alone deriving declarations?

2006-10-05 Thread Bjorn Bringert
We considered that syntax, but decided against it. Stand-alone deriving declarations are made to be as similar as possible to the current deriving mechanism, rather than be similar to instance declarations. The basic reason for maintaining a syntactic distinction between instance

Re: Proposal for stand-alone deriving declarations?

2006-10-05 Thread Bjorn Bringert
. This would as far as I can tell not be possible (or at least not readable) without the for. /Björn On 5 okt 2006, at 20.58, Bjorn Bringert wrote: We considered that syntax, but decided against it. Stand-alone deriving declarations are made to be as similar as possible to the current

Re: GHC on MacOS

2006-10-03 Thread Bjorn Bringert
I'm also willing to try to help investigate/fix problems with GHC on OS X/i386. /Björn On 2 okt 2006, at 09.31, Simon Peyton-Jones wrote: Thanks -- in fact we've had a few helpful offers of access (which is v helpful). We may still yet take you up, but meanwhile don't do too much work.

Re: [Haskell-cafe] USB Drivers in Haskell

2006-08-25 Thread Bjorn Bringert
On 25 aug 2006, at 05.02, Jason Dagit wrote: Hello, I recently became the owner a USB gadget that tracks movement via GPS and also tracks heart rate (it's a training device for athletes). This device comes with software that is windows only and...doesn't like up to it's potential (to put it

Re: [Haskell-cafe] AJAX applications in Haskell

2006-08-11 Thread Bjorn Bringert
On Aug 10, 2006, at 6:29 AM, Adam Peacock wrote: On 8/10/06, Jared Updike [EMAIL PROTECTED] wrote: [..] http://www.ugcs.caltech.edu/~lordkaos/calc.cgi (source available here http://www.ugcs.caltech.edu/~lordkaos/ calc.tar.gz) I've only recently joined this mailing list, and there seems

Re: [Haskell-cafe] Why Not Haskell?

2006-08-05 Thread Bjorn Bringert
On Aug 4, 2006, at 11:10 PM, Bulat Ziganshin wrote: Friday, August 4, 2006, 8:17:42 PM, you wrote: 1) Haskell is too slow for practical use, but the benchmarks I found appear to contradict this. it's an advertisement :D just check yourself 2) Input and output are not good enough, in

Re: [Haskell-cafe] Help building HSQL...

2006-07-10 Thread Bjorn Bringert
On Jul 10, 2006, at 2:57 AM, Martin Percossi wrote: Hi, I'm trying to build HSQL, in order to use HaskellDb. The base directory (i.e. HSQL) builds ok, as per instructions, but the PostgreSQL directory fails with the error message: Setup.lhs:17:71: Couldn't match `PackageDescription'

[Haskell] Re: ANNOUNCE: HNOP 0.1

2006-07-01 Thread Bjorn Bringert
On Jun 30, 2006, at 1:01 AM, Ashley Yakeley wrote: In article [EMAIL PROTECTED] , Bayley, Alistair [EMAIL PROTECTED] wrote: Cool, that's awesome. But I don't see any Haddock docs? Or a Cabal Setup.hs? Would it be much trouble to add them? Bear in mind HNOP compiles just to an executable

Re: [Haskell-cafe] Re: ANNOUNCE: HNOP 0.1

2006-06-30 Thread Bjorn Bringert
On Jun 30, 2006, at 2:52 PM, Ashley Yakeley wrote: Simon Marlow wrote: My congratulations to the development team; this is an important contribution to the community. Thanks! You might want to use {-# OPTIONS_GHC #-} rather than {-# OPTIONS #-}, unless compatibility with older versions

Re: [Haskell-cafe] Is there any url lib?

2006-06-04 Thread Bjorn Bringert
On Jun 3, 2006, at 7:46 AM, Marc Weber wrote: Did anyone implement something like pythons urllib yet? I wont to retrieve some files via http (I could use wget -O - for that ) and send some form information (post/get).. In other words: Something like expect but for downloading some documents

Re: [Haskell-cafe] Haskell RPC

2006-05-29 Thread Bjorn Bringert
On May 25, 2006, at 11:00 AM, Joel Reymont wrote: Folks, I'm curious about how the following bit of Lisp code would translate to Haskell. This is my implementation of Lisp RPC and it basically sends strings around, printed readably and read on the other end by the Lisp reader. If I have

Re: [Haskell-cafe] Editors for Haskell

2006-05-29 Thread Bjorn Bringert
Hi Chris, I followed your advice and tried SubEthaEdit. It seems to work really well, except that I can't figure out how to get it to indent my Haskell code correctly. What I expected was something like the Emacs Haskell mode where I can hit tab to cycle between the different reasonable

Re: [Haskell] GHC on Intel Mac

2006-05-26 Thread Bjorn Bringert
I've moved the Wiki page and added a link to it from the Platforms page. Thanks! I'm happy to help out with whatever I can do to help the porting effort. I've got a brand new MacBook and I'm not afraid to use it (though I'm still learning how to). What needs to be done? /Björn On May

Re: [Haskell] GHC on Intel Mac

2006-05-24 Thread Bjorn Bringert
On May 24, 2006, at 3:22 PM, Thomas Davie wrote: Hi, I was just wondering what the status of porting GHC to intel mac was these days? I've finally beaten Apple into submission, and got them to replace my broken iBook with a MacBook, so a nice fast version would be nice. I've started

Re: [Haskell-cafe] parsing machine-generated natural text

2006-05-21 Thread Bjorn Bringert
On May 19, 2006, at 6:35 PM, Evan Martin wrote: For a toy project I want to parse the output of a program. The program runs on someone else's machine and mails me the results, so I only have access to the output it generates, Unfortunately, the output is intended to be human-readable, and

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

2006-01-22 Thread Bjorn Bringert
Neil Mitchell wrote: Hi, Can I use Haskell to do what people do with, say, PHP? I wrote Hoogle (http://haskell.org/hoogle) using Haskell, without using any libraries - just directly as a console program. It's open source so you can download it and see how its done, if you want. Of course

Re: The -static option of ghc, and choice between user-supplied library types (Unix)

2006-01-12 Thread Bjorn Bringert
Dimitry Golubovsky wrote: The Paragraph 4.10.7 of the GHC users guide contains this: -static Tell the linker to avoid shared Haskell libraries, if possible. This is the default. -dynamic Tell the linker to use shared Haskell libraries, if available (this option is only supported on Mac OS X at

Re: [Haskell-cafe] FunctionalJ - a library for Functional Programming in Java

2006-01-11 Thread Bjorn Bringert
Graham Klyne wrote: A colleague alerted me to this, which I thought might be of interest here: http://www.theserverside.com/news/thread.tss?thread_id=38430 (I have already found that my Haskell experiences have influenced my Python programming; maybe there's also hope for my Java?) I've

  1   2   >