Type mismatch error when calling an overloaded function with an Effect type - Effect Community