Skip to content

Notes for week 7 modules

ssanj edited this page Jan 16, 2012 · 18 revisions

Links:

Exercises:

Question 1

Hide foldr and foldl.

Question 2

What is the standard directory structure for a Haskell project?

Question 3

Run the function 'l16' in week7.hs to print out:

[1]:selectf (borrower)
---------------------
|cstmr-name|loan-num|
---------------------
|Adams     |L-16    |
---------------------

To do this you'll need to complete the export specification which includes a data type constructor and any functions in the module RelationalAlgebra.hs.

This includes:

  • Any imports,
  • Types:
  • Records is an Array of Record
  • Record is an Array of Value
  • Schema is an Array of Fields
  • Value, Field and Name are Strings
  • The datatype Table derives Eq and Show and is made of a Name, a Schema and Records.
  • Any functions required by week7.hs.

Questions raised during the group:

Answers to Exercises:

Interesting Asides

Clone this wiki locally