Finally found haskell compatible version of maxium subarray solution.
Added proper type annotations
Added test case.
Added type signature to test method