Re: [Haskell-cafe] How to organize code

2008-01-28 Thread Jonathan Cast
On 27 Jan 2008, at 11:18 PM, L.Guo wrote: Hi, How do you organize code ? Here is a sample. Acturally, I am thinking about using this plan. Any suggestions ? -- BasicalType.hs type Position = (Int,Int) data Box = Box { pos :: Position } data Chain = Chain { pos :: [Position] } --

[Haskell-cafe] How to organize code

2008-01-27 Thread L.Guo
Hi, How do you organize code ? Here is a sample. Acturally, I am thinking about using this plan. Any suggestions ? -- BasicalType.hs type Position = (Int,Int) data Box = Box { pos :: Position } data Chain = Chain { pos :: [Position] } -- Object.hs import BasicalType class Object o

Re: [Haskell-cafe] How to organize code

2008-01-27 Thread Tim Chevalier
On 1/27/08, L.Guo [EMAIL PROTECTED] wrote: Hi, How do you organize code ? Here is a sample. Acturally, I am thinking about using this plan. Any suggestions ? -- BasicalType.hs type Position = (Int,Int) data Box = Box { pos :: Position } data Chain = Chain { pos :: [Position] }