Hallo,
On 1/24/07, Ketil Malde <[EMAIL PROTECTED]> wrote:
jamin1001 wrote:
> What if I want to do something like
>
> data Chair = Chair {pos:: Int, color :: Int}
> data Table = Table {pos:: Int, color :: Int}
>
data Properties = Props { pos, color :: Int }
data Chair = Chair Props
data Table = Table Props
Do you mean:
data Chair = Chair Properties
data Table = Table Properties
?
--
-alex
http://www.ventonegro.org/
_______________________________________________
Haskell-Cafe mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/haskell-cafe