Add haddock documentation
The code needs to be much better documented. A good start would be to use Haddock to document the functions and data structures.
The code needs to be much better documented. A good start would be to use Haddock to document the functions and data structures.