Complete the following Haskell function definitions. You may use any Haskell standard prelude or library function. You may need to write auxiliary “helper” functions in some cases.
Place all definitions in a single file. Use the specified function name as your code will be tested by a Haskell function expecting that function name.
The testing program may use many more test cases than the ones shown in the specification. So, please test your functions extensively to ensure that you maximise your marks.
Hello,
I can implement all attached exercises as separate Haskell functions, I will also write a few tests for all functions to show how they work.
Thanks,
Paul