can you please help to function these basic haskell programme as it will be good practice for me in the future thank you!!!!!!!!
1. Define a function prodsum that takes a positive Int value n and returns the product of positive odd integers not exceeding n and the sum of the positive even integers not exceeding n multiplied together, e.g.
Main> prodsum 4
18
2. Define a function rectangle which takes two positive Int values m and n and returns a String value which can be displayed as a m by n rectangle, e.g.
Main> putStr (rectangle 3 4)
****
****
****
3. Define a function flagpattern that takes a positive Int value greater than or equal to five and returns a String that can be displayed as the following `flag' pattern of dimension n, e.g.
Main> putStr (flagpattern 7)
*******
** **
* * * *
* * *
* * * *
** **
*******
4. Define a function swapwords that takes three String values w1, w2 and s, and returns s with all occurrences of the String w1, in the String s, replaced by the String w2, e.g.
Main> swapwords "lamb" "buffalo" "Mary had a little lamb whose fleece"
"Mary had a little buffalo whose fleece"
5. Define a polymorphic function split that is applied to two arguments of types [a] and a, where a is a type on which == is defined, and returns a list of lists that partitions the original list at occurrences
of the second argument, e.g.
Main> split [1,2,3,0,4,5,0,0,7,8,9] 0
[[1,2,3],[4,5],[7,8,9]]
Main> split "Mary had a little lamb" ' '
["mary","had","a","little","lamb"]