1 import "JavaBuiltin" as Java
9 class (Additive a) => Ring a where
12 instance Additive Double where
15 instance Ring Double where
18 instance Additive Integer where
21 instance Ring Integer where
24 main = (1.0 :: Double)*(2.0 :: Double)+(3.0 :: Double)*(4.0 :: Double)