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] }
-- Object.h
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 :
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