Subject: Re: 415.360 Assignment 1

> 
> Just a quick question:
> 
> Do we have to use the function declarations exactly as they're given in the questions? For example, the declaration for the first question includes the line:
> sales m = ...
> which would prevent us from using the pattern matching kind of definition discussed in today's lecture.

You have to use the function signatures as they stand.
In other words, you must say
    sales :: Month -> Amount
but you don't need to say 
    sales m = ...

> I'd like to use the pattern matching idea because it seems tidier than a very long if statement for this sort of question.
> 

Seems like a good idea!

/CC

___________________________________________________________________________
Christian Collberg      | Email: c_collberg@cs.auckland.ac.nz
Computer Science Dept   | Fax:   +64-9-373-7453
University of Auckland  | Phone: +64-9-373-7599 x 6137
Private Bag 92019,      | WWW:   http://www.cs.auckland.ac.nz/~collberg/
Auckland, NZ            |
___________________________________________________________________________
"Education is an admirable thing, but it is well to remember from time
to time that nothing that is worth knowing can be taught." - Oscar Wilde
___________________________________________________________________________