At 11:41 20/03/2003 -0800, you wrote:
> I suppose this is the multi-parameter type class extension you
> mentioned. Can you say where this extension is described, and how widely
> implemented it is?
GHC (with the flag -fglasgow-exts) and Hugs (with the flag -98)
implement it. I think NHC does too.
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 clas
> -- *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 t
> 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
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.
M
hi all,
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. a simple example
might be a 'maybeShow' function which sematically looks like:
> maybeShow
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
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
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/
http://sourceforge.net/
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
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 graphics
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: Web
> 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
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
ve
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?
>
> Y
15 matches
Mail list logo