Haskell track: assignment 3: type classes


Goals

In this lab you'll get familiar with creating new instances of type classes.


Language concepts covered this week


Program to write

This week, you'll be writing code to implement new numerical types as instances of type classes. Write a file called lab3.hs in which you will implement two new numerical types:


To hand in

The file lab3.hs, containing your implementation of the numerical type classes described above. Also include answers to the questions asked above in comments in your code, as well as the requested test routines.


References