I have this assignment where I am unsure where to start. So one of the things is to do a maybe to either conversion with this signature:
maybeEither:: Maybe a -> Either () a
and the other is of course the opposite
eitherMaybe:: Either () a -> Maybe a
so when you call one of the other they will cancel eachother out. Now I don't really know where to begin here... Can someone help?
Extra question: How would I convert a function for example (Int->a) -> a
and a -> (Int->a)
Like since in the second example you really can't give the function as a parameter to the function that converts, Im not sure how that would go.