Hello Donn,

Monday, July 10, 2006, 11:03:32 AM, you wrote:

>     plot :: GraphIntInt -> [CLLong] -> [CLLong] -> IO ()
>     plot :: GraphIntFloat -> [CLLong] -> [CDouble] -> IO ()
>     plot :: GraphFloatInt -> [CDouble] -> [CLLong] -> IO ()
>     plot :: GraphFloatFloat -> [CDouble] -> [CDouble] -> IO ()

>    class Coords (g x y) where
>       plot :: g -> [x] -> [y] -> IO ()
>    instance Coords (GraphIntInt CLLong CLLong) where
>       ...
>    instance Coords (GraphIntFloat CLLong CDouble) where
>       ...

{-# OPTIONS_GHC -fglasgow-exts #-}
....
class Coords g x y where
   plot :: g -> [x] -> [y] -> IO ()

instance Coords GraphIntInt CLLong CLLong where
   plot = plotIntInt
...


OPTIONS_GHC should be first line of source file (multi-parameter type
classes is one of GHC's extension over H98)


-- 
Best regards,
 Bulat                            mailto:[EMAIL PROTECTED]

_______________________________________________
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to