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
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
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
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
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
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
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
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
| 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