More Bulk types in Context

1999-05-01 Thread Kevin Atkinson
Ok I partly solved my problem but I am still stuck. I would like to make both a [(a,b)] and Array a b instances of the Find class however I can't figure out how to do it. import Array class Listable c a where toList :: c a -> [a] class Find c a b where find :: a -> c (a,b) -> May

Re: Questions from a returning Haskell user...

1999-05-01 Thread Jan Skibinski
On Sat, 1 May 1999, S. Alexander Jacobson wrote: > The third problem is also an implementation issue > You don't want to have to start a hugs process that makes a > connection to a database everytime a user makes a request. You want > something like mod_perl or jserv which keeps the interp

Re: Bulk types in Context

1999-05-01 Thread Kevin Atkinson
Daniel Russell wrote: > > Kevin Atkinson wrote: > > >Could someone tell me why this is not allowed and if there is a possible > >workaround. (I know this example seems pointless however it is a real > >concern as having bulk types in the context is something I would really > >like to do.) > > H

Re: Questions from a returning Haskell user...

1999-05-01 Thread S. Alexander Jacobson
Right now we are use Haskell to pregenerate HTML/Javascript on Shop.com We would love to use it for dynamic page generation, it does not appear to meet our needs: * NT is not a reliable server platform so we can't use HaskellCOM * Haskell itself has no libs for database,network,files,ldap * Haske

Re: Bulk types in Context

1999-05-01 Thread Daniel Russell
Kevin Atkinson wrote: >Could someone tell me why this is not allowed and if there is a possible >workaround. (I know this example seems pointless however it is a real >concern as having bulk types in the context is something I would really >like to do.) Here's the not allowed bit: >class Listab

Bulk types in Context

1999-05-01 Thread Kevin Atkinson
Could someone tell me why this is not allowed and if there is a possible workaround. (I know this example seems pointless however it is a real concern as having bulk types in the context is something I would really like to do.) class Listable c a where toList :: c a -> [a] class Find c a b

Re: Hugs Error, Legal Haskell 98 Code?

1999-05-01 Thread Kevin Atkinson
Kevin Atkinson wrote: > > Is this legal Haskell 98 Code: > > module Test where > > class A a where > foo :: a -> a > > class (A a) => B a where > boo :: a -> a > > foo a = a > > GHC compiles it just fine but the latest vesion of Hugs98 gives me > ERROR "test.hs" (line 10): No member

Hugs Error, Legal Haskell 98 Code?

1999-05-01 Thread Kevin Atkinson
Is this legal Haskell 98 Code: module Test where class A a where foo :: a -> a class (A a) => B a where boo :: a -> a foo a = a GHC compiles it just fine but the latest vesion of Hugs98 gives me ERROR "test.hs" (line 10): No member "foo" in class "B" So I was wondering if giving defa

RE: Hugs Error, Legal Haskell 98 Code?

1999-05-01 Thread Mark P Jones
| Is this legal Haskell 98 Code: | | module Test where | | class A a where | foo :: a -> a | | class (A a) => B a where | boo :: a -> a | | foo a = a | | GHC compiles it just fine but the latest vesion of Hugs98 gives me | ERROR "test.hs" (line 10): No member "foo" in class "B" | | S