I'm trying to write a function in Haskell and I'm trying to start the function with two lets followed by the answer.
split :: (a -> b) -> (a -> c) -> a -> (b, c)
split x y z =
let first = ( x (y))
let last = ( y (Z))
(first, last)
I'm getting a "parse error on input 'let'" starting on the 2nd let statement. Why is this, and how can I fix this?