RE: flock and sockets

2003-03-20 Thread John Hughes
On Wed, 19 Mar 2003, Simon Marlow wrote: I am planning a Haskell project and I need to access files. Since the program will be automatically started whenever a mail comes in I will need to be able to lock the access to files. Is there any support for this in some library? Yes, the

Web server code in Haskell by Simon Marlow?

2003-03-20 Thread Ahn Ki-yung
I am very interested in writing server programs in haskell. There is a link to a paper and code of haskell web server in the following page. http://www.haskell.org/practice.html I can see the case study paper, but there is no code at the link location. I think inspecting through code might be

RE: Web server code in Haskell by Simon Marlow?

2003-03-20 Thread Simon Marlow
I am very interested in writing server programs in haskell. There is a link to a paper and code of haskell web server in the following page. http://www.haskell.org/practice.html I can see the case study paper, but there is no code at the link location. I think inspecting through code

RE: Web server code in Haskell by Simon Marlow?

2003-03-20 Thread Bayley, Alistair
This was mentioned earlier this month, see: http://haskell.org/pipermail/haskell/2003-March/011372.html http://haskell.org/pipermail/haskell/2003-March/011371.html -Original Message- From: Ahn Ki-yung [mailto:[EMAIL PROTECTED] Sent: 20 March 2003 07:29 To: [EMAIL PROTECTED] Subject:

Looking for Libraries

2003-03-20 Thread Matthew Donadio
Hi all, This is probably a long shot, but I am looking for a few libraries and don't want to put effort into something that has already been done. Is there a high level Haskell graphics library that would give functionality similar to gnuplot? I know I could build one myself, but I hate

Re: Looking for Libraries

2003-03-20 Thread Ferenc Wagner
Matthew Donadio [EMAIL PROTECTED] writes: Is there a high level Haskell graphics library that would give functionality similar to gnuplot? Why not simply USE gnuplot? Or plotutils? They have simple textual interfaces, do good work, and are fairly standard tools (on a Unix system, at least).

Re: Class or parameterized type?

2003-03-20 Thread oleg
Hello! I wasn't aware there was a standard design, Edison is a good standard (in particular, Collection.hs, found, for example, in /usr/local/share/hugs/lib/exts/). The following projects have a lot of helpful code: http://sourceforge.net/projects/hbase/

Re: Looking for Libraries

2003-03-20 Thread Matthew Donadio
Ferenc Wagner wrote: Is there a high level Haskell graphics library that would give functionality similar to gnuplot? Why not simply USE gnuplot? Or plotutils? They have simple textual interfaces, do good work, and are fairly standard tools (on a Unix system, at least). I would like to

Re: Looking for Libraries

2003-03-20 Thread Ferenc Wagner
Matthew Donadio [EMAIL PROTECTED] writes: I would like to be able to have plotting capabilities directly from a Haskell program rather than using a spawned process Plotutils' functionality is included in a library. You can easily write an FFI wrapper for that. But I agree that a native

RE: flock and sockets

2003-03-20 Thread oleg
John Hughes wrote: I didn't find this when I needed to lock files, so my solution (under Unix) was to write a little C code and call it via the FFI. I used a single lock file, since my application was a CGI script which runs fairly rarely -- there's no need for a finer grain of locking. Many

Re: simulating dynamic dispatch

2003-03-20 Thread oleg
i'm hoping to be able to simulate a sort of dynamic dispatch based on class instances. It seems you want to dispatch based not on a type but on the constraint of a type. You code almost worked. Here's the a bit updated and working version. class Foo a where { foo :: a - Bool } class Bar a

Re: simulating dynamic dispatch

2003-03-20 Thread Hal Daume III
-- *Main test $ MkFoo (0::Int) -- Just True -- *Main test $ MkFoo (10::Int) -- Just False -- *Main test $ MkBar 'a' -- Just True -- *Main test $ MkBar 'b' -- Just False ah, yes. i was aware that would work. i forgot to mention the constraint that i don't want the user to have to

Re: simulating dynamic dispatch

2003-03-20 Thread Fergus Henderson
On 20-Mar-2003, Hal Daume III [EMAIL PROTECTED] wrote: i'm hoping to be able to simulate a sort of dynamic dispatch based on class instances. basically a function which takes a value and depending on what classes it is an instance of, does something. I call this feature dynamic type class

HEAD: the `impossible' happened, MacOS X

2003-03-20 Thread Volker Stolz
This is yesterdays HEAD: ../../ghc/compiler/ghc-inplace -H32m -O0 -W -fno-warn-unused-matches -fwarn-unused-imports -L/sw/lib -fglasgow-exts -cpp -Iinclude -#include HsBase.h -funbox-strict-fields -package-name base -dcore-lint -W -fno-warn-unused-matches -fwarn-unused-imports -keep-hc-files

RE: HEAD: the `impossible' happened, MacOS X

2003-03-20 Thread Simon Marlow
This is yesterdays HEAD: ../../ghc/compiler/ghc-inplace -H32m -O0 -W -fno-warn-unused-matches -fwarn-unused-imports -L/sw/lib -fglasgow-exts -cpp -Iinclude -#include HsBase.h -funbox-strict-fields -package-name base -dcore-lint -W -fno-warn-unused-matches -fwarn-unused-imports

Re: HEAD: the `impossible' happened, MacOS X

2003-03-20 Thread Volker Stolz
On Thu, Mar 20, 2003 at 12:08:22PM +, Simon Marlow wrote: System/Random.hs:15: Warning: Module `GHC.IOBase' is imported, but nothing from it is used (except perhaps instances visible in `GHC.IOBase') ghc-5.05: panic! (the `impossible' happened, GHC version 5.05):

GLUT copyright violation

2003-03-20 Thread Ross Paterson
The Haddock documentation embedded in the GLUT package is derived from The OpenGL Utility Toolkit (GLUT) Programming Interface API version 3: http://www.opengl.org/developers/documentation/glut/spec3/spec3.html http://www.opengl.org/developers/documentation/glut/glut-3.spec.ps.gz

RE: HEAD: the `impossible' happened, MacOS X

2003-03-20 Thread Sean Seefried
On Thu, 20 Mar 2003, Simon Marlow wrote: This is yesterdays HEAD: ../../ghc/compiler/ghc-inplace -H32m -O0 -W -fno-warn-unused-matches -fwarn-unused-imports -L/sw/lib -fglasgow-exts -cpp -Iinclude -#include HsBase.h -funbox-strict-fields -package-name base -dcore-lint -W

Symbol referencing problem in GHC HEAD.

2003-03-20 Thread Sean Seefried
Hi all, I recently had some trouble trying to compile a simple Template Haskell program main = putStrLn (show ($[| 20 |])) The following output was generated: /home/sseefried/local/lib/ghc-5.05/HSbase_cbits.o: unknown symbol `__umoddi3' Loading package base ... linking ... ghc-5.05: panic!

Concurrncy is not working well in Windows

2003-03-20 Thread Ahn Ki-yung
{- In FreeBSD ghc-5.04.2 the simple echo server below works fine. (except for broken pipe. Installing signal handler will do good.) It broadcasts Welcome! to all users repeatedly. But in Windows XP, cygwin, ghc-5.04.3. It gets blocked on the accept routine and wakes up for a moment when new