Get the Left element of a Either function : <p>I have a function in Haskell
<code>getCorError :: a -> b -> Either c [Error]</code>,
being <code>Error = Expected c</code> <br>
On another function, which returns <code>-> [Error]</code>, I want to return <code>[Expected (getCorError a b)]</code> if <code>getCorError</code> returns Left or [Error] otherwise.<br>
I get a type error when doing <code>[Expected (getCorError a b)]</code>. I have tried many things, like writing Left before the parentesis and after, and many others, and I haven't been able of doing this.
Appreciate any help. </p>
